Interviews - C# Corner

vinod jadhav
Can we inherit an abstract class from another abstract class?
By vinod jadhav in C# on Apr 22 2019
  • Amol Bhillare
    May, 2019 24

    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!");}}

    • 1
  • Deepak Rajput
    Jun, 2019 22


    • 0
  • Manisankar Dixit
    May, 2019 15

    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.

    • 0

Most Popular Companies

Most Popular Job Functions