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
What is the difference between early binding and late binding in c#?
What is private readonly in c#?
What is a variable in c#?
what is generics? can u explain 5 to 6 examples on generics that covers class,method,structure,list,delegates?
What is Asynchronous call and how it can be implemented using delegates?
How to block a class from being inherited further?
What is the boxing and unboxing in c#?
What are the new features in c# 2.0?
Can a class be protected in c#?
What is Satellite Assemblies ?
When would you use generics in your code c#?
What is the usage of transponders?
What is float in unity?
what are implementation inheritance and interface inheritance?
Does c# have a 'throws' clause?