![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
On the other hand, suppose that you make a habit of using access
procedures. You would define tCalories
, and perhaps many other
methods, to send getters to self
:
Food method definition instance tCalories ^ self fCalories + self cCalories + self pCalories