Using Private "Helper" Methods
The AquaFish
class currently has two private "helper"
methods, initSize
and initPos
, which determine
the initial size and an initial location
and direction for a newly constructed fish. All other methods
are public, and all data members are private.
Questions
|