why use accessor methods?
843785Nov 30 2008 — edited Dec 1 2008ok so i am a complete beginner to java, and the book im reading on it just introduced accessor methods. my question is whats the point in using them? why not just make all the variables public and use things like myClass.myVariable = value? to me they just seem like a time waster for both the programmer and the computer