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.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment