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

In .NET which is the smallest unit of execution?

844


Is arraylist thread safe?

674


Why do we use void in c#?

661


In C#, explain the difference between overloading and overriding.

759


Is null in c#?

655


How is the syntax written to inherit from a class in C#?Give an example ?

795


What is writeline?

670


Is c# lazy thread safe?

681


What is console programming language?

702


What are "class access modifiers" in C#?

730


What is a cshtml file?

709


What is difference between ienumerable and iqueryable in c#?

707


What Is An Interface Class?

785


Can we inherit private members of class in c#?

743


How do I convert a string to an int in c#?

723