[Home]Multiple inheritance

HomePage | Recent Changes | Preferences

Showing revision 1
In Object Oriented Programming (OOP), inheritance describes the relationship between two objects. The child inherits features of the parent, allowing for shared functionality. So in the following example:

'Rat' is a child of 'Quadruped Mammal'

Features on 'Quadruped Mammal' (such as "has four legs", "begin walking", or "eat food"), are automatically a part of 'Rat' as well.

If, however, you want to follow totally orthogonal hierarchies simultaneously, such as allowing 'Rat' to inherit from 'Depicted In Cartoon' as well, without Multiple Inheritance you often end up with a very awkwardly mixed hierarchy.

Multiple Inheritance has been a touchy issue for many, with opponents pointing to its increased complexity and ambiguity (if two parents have independant implementations of a feature named X, which one do I inherit?)


HomePage | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited July 27, 2001 5:40 am by JesseMontrose (diff)
Search: