![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Of course, nothing is gained by the new version of
the new
class method defined in Segment 254. In the
following revision, however, the announce
message is sent to the new
instance. Because the new instance is an instance of the Food
class, the announce
message activates the announce
instance
method associated with the Food
class:
Food method definition • class *-- Send the announce message | to the new Food instance | new v ^ super new announce