lotus

previous page: 1.7) What Is Inheritance? (Object-Oriented Technology)
  
page up: Object-Oriented Technology FAQ
  
next page: 1.9) Does Multiple Inheritance Pose Any Additional Difficulties? (Object-Oriented Technology)

1.8) What Is Multiple Inheritance? (Object-Oriented Technology)




Description

This article is from the Object-Oriented Technology FAQ, by Bob Hathaway rjh@geodesic.com with numerous contributions by others.

1.8) What Is Multiple Inheritance? (Object-Oriented Technology)

Multiple Inheritance occurs when a class inherits from more than one parent.
For example, a person is a mammal and an intellectual_entity, and a document
may be an editable_item and a kind of literature.

Mixin's is a style of MI (from flavors) where a class is created to provide
additional attributes or properties to other classes. They are intended to be
inherited by any class requiring them. Method combination, or calling
sequences of before, after, and around methods or even several primary methods
[Kim 89, ch 4], make good use of mixins by invoking their methods without
explicitly calling them, allowing client class code to remain unchanged [Booch
91, p 113].

 

Continue to:













TOP
previous page: 1.7) What Is Inheritance? (Object-Oriented Technology)
  
page up: Object-Oriented Technology FAQ
  
next page: 1.9) Does Multiple Inheritance Pose Any Additional Difficulties? (Object-Oriented Technology)