Why might we want to make a variable private?
Perfect! Some variables should be private so they can only be accessed through methods. Also, hiding internal variables can make things easier to understand.
Oh noes! Some variables should be private so they can only be accessed through methods. Also, hiding internal variables can make things easier to understand.