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 is difference between an Structure and Class?

756


Is list immutable in c#?

658


Illustrate race condition?

657


Can abstract class have parameterized constructor?

672


What are sorted lists?

671






What is the difference between protected and internal in c#?

639


Why to use lock statement in c#?

654


What is the purpose of a console table?

621


Is c# lazy thread safe?

656


What is data type in c# with example?

701


Explain About Postback

710


Differentiate between dataset and datareader?

705


Is c++ or c# better?

697


What are satellite assemblies?

702


What are the properties of c#?

673