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

Can abstract classes be final?

499


If multiple interfaces are inherited and they have conflicting method names; What will happen ?

512


What is an extension method in c#?

505


What does private void mean in c#?

544


What is difference between === and ==?

468






How to implement delegates in c#.net

550


What is constants in c#?

426


How many bytes is a long c#?

466


What are virtual destructors?

509


What is event sourcing in c#?

506


What is the data type for bit in c#?

477


What is the task perform by clr?

577


Define the term immutable ?

630


Give an example of a directcast.

520


What are bitwise logical operators?

487