Question: 1 . We ve given you a Person class with three instance variables age, wisdom, and fitness. Those values all get initialized to different values

1.
Weve given you a Person class with three instance variables age, wisdom, and fitness. Those values all get initialized to different values when the constructor is called. Weve also provided you with mutator methods for all three variables.
Complete the hasBirthday() method. This method should call the mutator methods to increase age by 1, increase wisdom by 5, and decrease fitness by 3.
When youre done writing hasBirthday() look at the main() method to see how were calling it.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!