![]() |
![]() |
![]() |
![]() |
![]() |
|
Alternatively, you can define new for the Food class so that
new:
new method associated with the superclass of
Food, to create a new instance of the Food class.
announce message to the new instance to announce the
creation of the instance.