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
Can abstract classes be final?
If multiple interfaces are inherited and they have conflicting method names; What will happen ?
What is an extension method in c#?
What does private void mean in c#?
What is difference between === and ==?
How to implement delegates in c#.net
What is constants in c#?
How many bytes is a long c#?
What are virtual destructors?
What is event sourcing in c#?
What is the data type for bit in c#?
What is the task perform by clr?
Define the term immutable ?
Give an example of a directcast.
What are bitwise logical operators?