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
There were a lot of questions asked, so I will list the topic (and add a what is "topic" and know pros/cons). Extreme programming, what is a transaction, various SDLC design approaches, what is a namespace, define a good test case, what is a stored proc, webservice? design patterns? linker? compiler? access modifiers? stack vs. queue? arrays vs. linked lists? sorting algorithms? recursion? OOP principles?
Can you instantiate an abstract class c#?
What is the difference between method parameters and method arguments. Give an example?
What is an array class?
Are structs value types or reference types?
List the differences between method overriding and method overloading?
What do you mean by expression tree?
What is default constructor in c#?
What is string class in c#?
What are examples of desktop applications?
What is inline function in c#?
What does firstordefault mean in c#?
What is dbcontext c#?
Explain the difference between object type and dynamic type variables in c#?
Define satellite Assembly?