Home Segments Index Top Previous Next

592: Mainline

Of course, when you define < for the Weight class, defined in Segment 556, the definition in the Magnitude class is overridden for all Weight instances, and there is no reason for an error display to appear:

   Object                     The < method sends an 
     |                        implementedBySubclass 
   *-*------------*--         message to self 
   |              |             | 
 Collection     Magnitude <-----* 
   |              |            
 *-*-----*--    *-*-----*------------*-- 
 |       |      |       |            | 
Bag     Set   Number   Time        Weight <--* 
                                             | 
                             The < method ---* 
                             is defined