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
What is an extension method in c#?
Is stringbuilder faster than string concatenation c#?
Can abstract classes be final?
What is the difference between structure and class in c#?
Which is more efficient for loop or while loop?
What is the default value of object in c#?
Why do we use constructors in c#?
What is ispostback c#?
what is difference between destruct or and garbage collection ?
Why do we need indexers in c#?
What is the purpose of dependency injection?
What is null character in string?
What is use of FormBoarderStyle Propertie
Constructor to an arbitrary base constructor?
What is an interface class? Give one example of it