DEV Community

Discussion on: C# Intro to the Abstract classes

Collapse
 
lordsayur profile image
Omar

Can a normal class inherit more than 1 abstract classes?

Collapse
 
gamersuji profile image
Sujith

Sorry for the late answer, but it is completely based on what programming language you're using, I am using C# and here the answer is yes and a no, because if you are looking at a multilevel inheritance it is possible but as a multiple inheritance, it is impossible to do so as multiple inheritance is not supported by C# programming language.

Multi level: If you have an abstract class called "Brain" which is inherited by the abstract class "head" which is in turn inherited by a default class "body". then it is absolutely possible to able to inherit more than 1 abstract class and use methods of the "brain" class but if you wanna inherit both head and brain to the body class, then it is impossible cause it becomes a multiple inheritance.