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
How do you declare an arraylist?
How big is an int in c#?
What is c# best for?
What are delegates?
Explain clr in brief.
How to get the sum of last 3 items in a list using lambda expressions?
What is different between Implicit conversion and Explicit conversion in C#?
What is the purpose of a console table?
Explain the difference between access specifier and access modifier in c#?
What do you mean by the delegate in c#?
What is a delegate how is it type safe?
What is difference between virtual and override in c#?
What is an example of delegation?
In how many ways you can overload a method?
Can you create sealed abstract class in c#?