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


Please Help Members By Posting Answers For Below Questions

What happens when thread sleep () method is called?

686


What is xor operator in c#?

728


What is a shared assembly?

754


What is singleordefault c#?

706


From which base class do all Web Forms inherit from?

734


Which is better interface or abstract class in c#?

619


What are the types of access modifiers?

703


When Should You Call The Garbage Collector In .net?

801


What are the different types of constructors?

735


List the difference between interface and abstract class?

666


Explain the ways to deploy an assembly?

741


What is the difference between a class and an object c#?

690


explain Garbage collector’s functionality on unmanaged code

728


What is the use of readkey in c#?

747


What is the use of 0 in c#?

738