Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Objective Grid User's Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

13.3 Multiple Inheritance

Objective Grid uses multiple inheritance to allow aggregation of functionality. With multiple inheritance, a derived class has more than one base class. For example, CGXGridView is derived from both CGXGridCore and CGXView. This means that CGXGridView inherits methods and properties from both CGXGridCore and CGXView. The reason for using multiple inheritance is that it allows your classes to be more granular, letting you pick and choose the functionality you want in your derived class, without having unneeded methods or properties just because they happen to be a member of the base class. For example, in the diagram below, CGXGridHandleView is derived from CGXView, but not CGXGridCore.

Figure 125: Drawing classes hierarchy



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo, and Stingray, are registered trademarks of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.