0
/ 1.0
You are writing code for a Jeroo subclass that represents an overly cautious Jeroo. This type of Jeroo only hops if there are no...
You are writing code for a Jeroo subclass that represents an overly
cautious Jeroo. This type of Jeroo only hops if there are no obstacles
(water, nets) nearby. Implement the
cautiousHop()
method so that it only hops forward if there are no
obstacles (water, nets) in front or to either side of the jeroo.
Examples:
With a net in front
With no hazards
Your feedback will appear here when you check your answer.