0

For example I have this:

public int getAge(){
     return age
}

and now I have to use a setAge() but I don't know how.

Abimaran Kugathasan
  • 31,165
  • 11
  • 75
  • 105
  • 1
    No, it's not too primitive. Being a *duplicate* could be reason for closing, but otherwise it's a perfectly valid and reasonable question. Just because it's simple for someone else doesn't mean it's simple for this user. – Rogue Apr 29 '14 at 12:27
  • 1
    Yes..... http://stackoverflow.com/questions/6638964/set-and-get-methods-in-java – bobbel Apr 29 '14 at 12:29

0 Answers0