stason.org logo lotus


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

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

 Books
 TULARC
















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:


Share and Enjoy

Bookmark this story so others can enjoy it:
  • digg
  • Reddit
  • del.icio.us
  • Furl
  • Wists

Tags

programming, software, coding, Object-Oriented, language, dynamic binding, constructor, destructor, overriding, methods, inheritance, reflection, persistence, MFC, real-time, polymorphism, system, database, vendor







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