I dont understand what to do with this problem. Could someone explain it in somewhat simple terms?
I need help
You must be signed in to leave a comment
1 April 2020, 17:29
The program should display: Age: 20 The age in adjustAge() is 20 Adjusted age: 40 You will accomplish this by using the hint in the condition. If you are adding/deleting/modifying more than only 1 thing then you are doing too much and over thinking the problem.
1 April 2020, 17:01
- delit this line: //System.out.println("Adjusted age: " + person.adjustAge()); - then change argument : public void adjustAge(int ageS) (or what ever you want instead of my "ageS"), - then write this: this.age = ageS +20;