What is multilevel inheritance in C++?

When one class inherits another class which is further inherited by another class , it is known as multi level inheritance in C++. Inheritance is transitive so the last derived class acquires all the members of all its base classes. Let’s see the example of multi level inheritance in C++.

Sizin İçin Seçtik  How are constructors used in inheritance?

Leave a Reply

Your email address will not be published. Required fields are marked *