This Chapter was also about encapsulation, which is the use of "getter" and "setter" methods to return variables without accessing the instance variable directly. Encapsulation is used to protect the instance variables from being accessed from outside of its class.
No comments:
Post a Comment