Question: ( c ) Implement the eat ( ) and scare ( ) methods. The eat ( ) method checks the intelligence of a human -
c Implement the eat and scare methods. The eat method checks the intelligence of a human if it's "high", returns true, otherwise it calls the increaseWeight method and then returns false. The scare method checks a human's bravery if it's false, it prints a line: "Human scared." otherwise it will print: "Human is too brave to scare."
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
