Yes, we can inherit the abstract class to another abstract class. See the below example-abstract class A{public virtual void show(){Console.WriteLine("Hello: Base Class!");}}abstract class B : A{public override void show(){Console.WriteLine("Hello: Derived Class!");}}
Yes, you can. See the below code.
`public abstract class SavingAccountDetails{ public abstract void PrintData();}
public abstract class CurrentAccountDetails : SavingAccountDetails{ public override void PrintData() { Console.WriteLine(“Current account details”); }}`
Sure, an abstract class can inherit from another class!!
The only time a class cannot inherit from another is when the class you wish to inherit from is sealed or has private constructors only.
Yes, You can inherit an abstract class from another abstract class.
Yes you can inherit abstract class from another abstract class.
Yes you can inherit or extend one abstract class to another abstract class but if the class is a sealed class or single ton class at that time only inheritance cant be applicable.
Yes, that is possible in C#
Yes, we can inherit an abstract class fron another abstract class.Code would be like:public abstract class ABS1 { public abstract void Read(); } public abstract class ABS2:ABS1 { public abstract void Write(); } public class AbsChild : ABS2 { public override void Read() { throw new NotImplementedException(); }
public override void Write() { throw new NotImplementedException(); } }
public override void Write()
{
throw new NotImplementedException();
}
yes, we can inherit an abstract class from another abstract class.note: An abstract class cannot be instanciated.
no
yes, you can
Yes, You can inherit abstract class into another abstract class.