C# Multilevel Inheritance

In Multilevel inheritance, the class inheriting its parent class is further inherited by another class and so on. This type of inheritance is transitive that’s why the last derived class inherits all of its base classes.

Let’s see a simple example in which a class animal is inherited further by Dog class and this is also inherited by another class babydog. At last babydog not only acquire all the properties of its base class dog but of animal also.


C# Multilevel Inheritance: some more meaningful Example


Leave a Comment