Bug in ObjC: The bug as object
- Inheriting from the ObjectBase class Bug knows these tricks:
- create: Allocate memory
- drop: Deallocate and die
- First instruct class to create instance of itself. Associate instance with aBug
aBug=[Bug create:globalZone];
- Then set parameters in the instance, aBug
[aBug setX: xPos Y: yPos];
[aBug setWorldXSize: worldXSize Y: worldYSize];