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 the difference between inheritance and abstract class?
What is c# used for?
how to sort an array in c#
What can I create with c#?
How to declare a property in a class?
When should we use delegates in c#?
What is COM Interoperability?
What is the difference between overriding and overloading in systemverilog?
Why is c# a good programming language?
What is different between Implicit conversion and Explicit conversion in C#?
Helo , Help Me , Help Me About : C# Windows Application - Network How To Manage IP Client's Accessiblity To The Internet Share concise Substitute , Minor ISA Server
What are the different types of classes in c#?
Can I use parseint?
What is deadlock in c#?
Is stringbuilder thread safe c#?