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
Does c# have its own class library?
What are instance fields in c#?
Why we use delegates in c#?
How to Show Message box in Metro Style App?
What is dto c#?
Can interface inherit class in c#?
Explain the working of serialization?
What is cshtml?
Why do we need indexer in c#?
Explain the difference between Response.Write () and Response.Output.Write ().
what is main function of alternate teamplate of datalist?
Why do we use dictionary in c#?
What is integer c#?
What is the difference between static class and sealed class in c#?
What is the difference between static class and abstract class in c#?