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 get set in c#?
What is difference between managed and unmanaged code?
Can class inherit from struct c#?
What is #region in c#?
What is appdomain in c#?
Can structs in c# have destructors?
Explain “static” keyword in c#?
Explain the difference between Metadata and Manifest
What are the differences between system.string and system.text.stringbuilder classes?
What is Inheritance in C#?
What is value c#?
What's the difference between System.String and System..StringBuilder in C#?
What is parameters in c#?
Is the following code legal?
what is the index value of the first element in an array?