Encapsulation
Objectives¶
- Use constructors to give data to object fields.
- Control the visibility of data members and methods.
- Understand the purpose of the
thiskeyword. - Practice good encapsulation.
Topics¶
- Changing Instance Fields
- Visibility and Access Modifiers
- Encapsulation
- Getters and Setters
- The
thisKeyword - Labs