![]() |
![]() |
![]() |
![]() |
![]() |
|
As given in Segment 523, the implementations of the
initialize and bear methods duplicate knowledge about
gestation time and the time required for a rabbit to reach maturity.
Create class variables, getters, and setters for the Rabbit class
such that gestation and maturity numbers reside in just one place.