Home Segments Top Top Previous Next

309: Mainline

The following diagram shows how the various instance variables and methods fit together. The getMinutes method is defined in only the Attraction class. The rating and describe methods are defined in the Movie and Symphony classes:

*---------------------------* 
| Attraction:               | 
|                           | 
|  minutes                  | 
|  getMinutes method        | 
|                           | 
*---------------------------* 
         ^     ^ extends 
         |     | 
 extends |     *----------------------------* 
         |                                  | 
         |                                  | 
*-----------------------*       *-----------------------* 
| Movie:                |       | Symphony:             | 
|                       |       |                       | 
|  script               |       |  music                | 
|  acting               |       |  playing              | 
|  direction            |       |  conducting           | 
|  rating method        |       |  rating method        | 
|  describe method      |       |  describe method      | 
|                       |       |                       | 
*-----------------------*       *-----------------------*