CrazyEngineers
  • Difference between Generalization and Inheritance

    Ankita Katdare

    Administrator

    Updated: Oct 25, 2024
    Views: 1.6K
    I have a subject called "Object Oriented Methodologies".
    In this, I frequently come across these two terms: Generalization and Inheritance.

    But, the difference between the 2 is not clearly mentioned anywhere.

    Can anybody solve this query?
    Please provide an example for the same.
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • Morningdot Hablu

    MemberOct 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..!
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register