Can we inherit an abstract class in another abstract class.
If no why and If yes how..?

Answer Posted / sudipta

Yes, we can inherit an abstract class in another abstract
class.

Suppose we have two abstract class.one is parent and
antoher is child.

namespace ClassCollection
{
abstract class Absparent
{
public abstract void Method1();

}

abstract Class AbsChield: Absparent
{
public abstract void Method2();

}

public Class ImplementedClass: AbsChield
{
here we can get two methods of abstact class
(Absparent,AbsChield)

public override void Method1()
{

}

public override void Method2()
{

}


}


}

Is This Answer Correct ?    9 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is an extension method in c#?

713


Is stringbuilder faster than string concatenation c#?

675


Can abstract classes be final?

708


What is the difference between structure and class in c#?

678


Which is more efficient for loop or while loop?

643


What is the default value of object in c#?

656


Why do we use constructors in c#?

788


What is ispostback c#?

662


what is difference between destruct or and garbage collection ?

702


Why do we need indexers in c#?

653


What is the purpose of dependency injection?

687


What is null character in string?

742


What is use of FormBoarderStyle Propertie

699


Constructor to an arbitrary base constructor?

747


What is an interface class? Give one example of it

669