A class invariant is a condition that holds true for an object's state throughout its lifecycle.
Class invariants are conditions that must always be true after the constructor has finished executing and after any public method is called. For instance, an `Account` class in an e-commerce system might have an invariant that the `balance` must never be negative, ensuring that all operations respect this rule.
Additional Notes
What does it mean for a class to have an invariant?