What is the use of static abstract class
Answer Posted / radheshayam
An abstract class cannot be sealed or static.Exe
using System;
using System.Collections.Generic;
using System.Text;
namespace ConsoleApplication31
{
public abstract class hi
{
public abstract void disl();
}
class Program : hi
{
public override void disl()
{
string name = "radhey" + "Shyam";
Console.WriteLine(name);
Console.ReadLine();
}
static void Main(string[] args)
{
Program obj = new Program();
obj.disl();
}
}
}
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
In .NET which is the smallest unit of execution?
Is arraylist thread safe?
Why do we use void in c#?
In C#, explain the difference between overloading and overriding.
Is null in c#?
How is the syntax written to inherit from a class in C#?Give an example ?
What is writeline?
Is c# lazy thread safe?
What is console programming language?
What are "class access modifiers" in C#?
What is a cshtml file?
What is difference between ienumerable and iqueryable in c#?
What Is An Interface Class?
Can we inherit private members of class in c#?
How do I convert a string to an int in c#?