Home Segments Top Top Previous Next

345: Mainline

In the following illustration, all arrows represent subclass–superclass relations:

                    *--------*                   
                    | Object |  <-- Root         
                    *--------*                   
                       ^  ^                      
              *--------*  *---------*             | Abstract classes 
              |                     |             | tend to be in 
            *---*                *-----*          | the upper layers 
            |   |                |     |          | 
            *---*                *-----*          | 
             ^^^                   ^ ^            | 
    *--------*|*--------*          | *------*     | 
    |         |         |          |        |     | 
  *---*     *---*     *---*      *-----* *-----*  | 
  |   |     |   |     |   |      |     | |     |  . 
  *---*     *---*     *---*      *-----* *-----*  . 
   ^ ^       ^ ^       ^ ^        ^ ^ ^       ^ 
 *-* *-*   *-* *-*   *-* *-*   *--* | *--*    | 
 |     |   |     |   |     |   |    |    |    |   Final classes 
*--* *--* *--* *--* *--* *--* *--* *--* *--*  *-- must appear only 
|  | |  | |  | |  | |  | |  | |  | |  | |  | <--- as leaves 
*--* *--* *--* *--* *--* *--* *--* *--* *--*