Hi guys, I'm currently reading up on Daniel Liang's Intro to
java and am starting to get a bit confused on chapt. 10: class abstraction & encapsulation. In an example class called "Loan", it has your normal "get" and "set" methods to do certain things that pertain to loans, but at the beginning I'm confused to why the declarations are all "private". Sorry if I'm explaining this poorly.
After these declarations, you have your setters and getters. Why are they private if their values are changed?