Lesson 21.4 Invariant Enforcement
From Hannah Lee October 30, 2020
115 plays
115
Related Media
We know how to enforce preconditions, but how do we force invariants for our attributes? As we see in this video, we do it much the same as for preconditions. But that is because we are going to prevent the user from accessing the attributes directly, and force them to use special methods instead.
- Tags
- Appears In
Link to Media Page
Loading
Loading…