Objective Grid : PART II Programmer’s Guide : Chapter 13 Objective Grid Concepts and Features : Multiple Inheritance
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