Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@morningdot-6Xuj4M • Oct 14, 2010
If you talk about furit and mango.You can say that fruit is a generalized class of mango.
Where all the mango properties defined a fruit.
.
But if you talk about mosambi and orange it would be an example of inheritance.Where some properties are extended you may extend the whole properties also.
ya fruit and mango is also an example of inheritance.
So you can say that every generalization example is an example of inheritance but reverse is not true.
.
Correct me if i am wrong..!