Lesson 23.8 Properties (OPTIONAL)
From Hannah Lee on November 8th, 2020
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.