Question: Die is a boolean and spoil is a boolean also. 7.8 Time flies Organisms will die after some time. Define a method timeTick() in Organism,

Die is a boolean and spoil is a boolean also.
7.8 Time flies Organisms will die after some time. Define a method timeTick() in Organism, which will have it die 10% of the time it is being called. Find a place to make a plant spoil sometime after it died as well; animals do not spoil
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
