I dont understand what to do with this problem. Could someone explain it in somewhat simple terms?
I need help
Under discussion
Comments (2)
- Popular
- New
- Old
You must be signed in to leave a comment
Guadalupe Gagnon
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
hidden #10550504
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;
+2