What is the use of static abstract class

Answers were Sorted based on User's Feedback



What is the use of static abstract class..

Answer / srini

We cannot give static key word for abstract class

Is This Answer Correct ?    21 Yes 5 No

What is the use of static abstract class..

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

What is the use of static abstract class..

Answer / ananth

Can you pls give me an example

Is This Answer Correct ?    3 Yes 1 No

What is the use of static abstract class..

Answer / kishore.a

We cannot mention an abstratct class as static..

Is This Answer Correct ?    3 Yes 3 No

What is the use of static abstract class..

Answer / irfan khan

we cant give static key word for a class

Is This Answer Correct ?    10 Yes 24 No

Post New Answer

More C Sharp Interview Questions

Difference between C++ and C#.net

19 Answers   Google, TCS, Wipro,


What is the use of static members with example using c#.net.

0 Answers  


Why are mutable structs evil?

0 Answers  


Explain About Assembly in .NET, types of assemblies, their difference, How to register into GAC. How to generate the strong names & its use.

0 Answers  


How many types of constructors are available in c#?

0 Answers  






What is the difference between cookies and session?

7 Answers   ADITI, Infinity, Infotech, VBV, Web Connect,


Where is the keyword void used?

0 Answers  


What is the difference between package and interface?

0 Answers   Hexaware,


If the interface in c# only contains the declaration of the methods and we need to define those methods in the class, then why we use the interface?

0 Answers   HCL,


Explain attributes in c#?

0 Answers  


What are the differences between value types and reference types?

0 Answers  


What is a reference type c#?

0 Answers  


Categories