X1001: canToss

You are writing code for a Jeroo subclass. Write a method called canToss() that takes no parameters and returns a true or false result. It should return true if the jeroo can toss a flower--that is, if there is a net in front of the jeroo and the jeroo is holding a flower.

Your Answer:

Feedback

Your feedback will appear here when you check your answer.