[Next] [Prev] [Up] [Top]

7.0 Classes

Inheritance (R)


SES applications should rely primarily on single inheritance. There is a provision for multiple inheritance described below.

Multiple inheritance (MI) is treated with skepticism. Use of virtual inheritance MI is prohibited due to complications involved with casting. We will want to reexamine this when all compilers begin to support dynamic_cast<>. A limited form of MI via a "mixin" style is permitted.

Mixin multiple inheritance (MMI) allows a given class to inherit from both a line of ancestors and a stand alone class. It specifically avoids the "dreaded diamond", whereby a common parent can be reached from multiple parents.


No Title
[Next] [Prev] [Up] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.