Answer to Question #14003 in C++ for dhiren

Question #14003
explain the real-word example of multilevel inheritance?
1
Expert's answer
2012-09-06T09:31:35-0400
Suppose we have classes Animal and Mammal.
Mammal is derived from Animal
because in fact, mammal is animal.
Now suppose we add new class
Elephant.
Class Elephant is derived from Mammal because elephant is a
mammal
mammal is animal.
All these 3 classes form multilevel
inheritance:
Animal->Mammal->Elephant
because Elephant is derived
from Mammal that is derived from Animal.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS