Encapsulation
- Encapsulation as the separation of how an object's data is used from how it is represented
- Encapsulation as the separation of the declaration of a class's public
methods (its API) from their implementation
- How the java.util.Date class encapsulates a point in time
(chapter 3)
- How the API for the Day class (chapter 3) allows for multiple day representations
- How the Matrix class
(Lab 4)
encapsulates matrix elements
- How to go about
Lab 4