Your methods don't need to take in a Person object as an argument...... They already have a reference to the person in the "this" variable (or you can just call getName(), and directly access the age...
Type: Posts; User: DavidFongs
Your methods don't need to take in a Person object as an argument...... They already have a reference to the person in the "this" variable (or you can just call getName(), and directly access the age...
Move the first line inside of main. Then at the beginning of that line, declare a Person variable, and add the new keyword (because that is how you create new objects when calling constructors)
...