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

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?

1578


Can you instantiate an abstract class c#?

499


What is the difference between method parameters and method arguments. Give an example?

505


What is an array class?

512


Are structs value types or reference types?

562






List the differences between method overriding and method overloading?

479


What do you mean by expression tree?

439


What is default constructor in c#?

490


What is string class in c#?

481


What are examples of desktop applications?

497


What is inline function in c#?

505


What does firstordefault mean in c#?

464


What is dbcontext c#?

480


Explain the difference between object type and dynamic type variables in c#?

487


Define satellite Assembly?

551