Lesson 21.5 Data Encapsulation
From Hannah Lee on October 30th, 2020
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.