Search:

Type: Posts; User: DavidFongs

Search: Search took 0.46 seconds.

  1. Replies
    10
    Views
    1,618

    Re: Not sure where/what my error is.

    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...
  2. Replies
    10
    Views
    1,618

    Re: Not sure where/what my error is.

    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)
    ...
Results 1 to 2 of 2