Lesson 23.8 Properties (OPTIONAL)
From Hannah Lee November 08, 2020
35 plays
35
Related Media
This video introduces an advanced topic that is completely optional and will not appear on any exam. Classes like RGB and Point3 appear to enforce their invariants without any getters and setters. But that is because they are hidden from the user. In this video, we show how to define properties which look and behave like attributes, but are not quite the same.
- Tags
- Appears In
Link to Media Page
Loading
Loading…