What is multilevel inheritance explain using 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  Mining nasıl para kazandırıyor?

Leave a Reply

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