What is multilevel inheritance in C++ with example?

So in C++ multilevel inheritance, a class has more than one parent class . For example, if we take animals as a base class then mammals are the derived class which has features of animals and then humans are the also derived class that is derived from sub-class mammals which inherit all the features of mammals.

Sizin İçin Seçtik  Çinko ve Magnezyum eksikliği nelere yol açar?

Leave a Reply

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