What is the use of static abstract class
Answers were Sorted based on User's Feedback
Answer / srini
We cannot give static key word for abstract class
Is This Answer Correct ? | 21 Yes | 5 No |
Answer / 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 |
Answer / kishore.a
We cannot mention an abstratct class as static..
Is This Answer Correct ? | 3 Yes | 3 No |
What is the difference between method and constructor in c#?
Why delegates are safe in c#?
Is equal in c#?
How to make a class not inheritable other than sealed?
What is _layout cshtml?
Explain how do you debug an asp.net web application?
How to implement an object pool in c#.net.
how to retrieve binary data from database (using c#.net and sql server/windows application)
Is c# code is managed or unmanaged code?
What are data types with examples?
What are the value types in c#?
Can fields inside a class be virtual?