Lesson 21.5 Data Encapsulation
From Hannah Lee October 30, 2020
108 plays
108
Related Media
In this previous video we introduced the concept of getters and setters. But how do we force the user to use these when the attribute is so much simpler. In this video we talk about the concept of data encapsulation, which involves hiding the attributes from the user. This forces them to use the getters and setters because they do not know of any other way.
- Tags
- Appears In
Link to Media Page
Loading
Loading…