Lecture 07: Ballworld Design

September 5, 2012

Ambient Temperature: 73.8oF Concepts Separating the Invariant from the Variant. “Invariant” properties (and methods) live in the (abstract) superclass. Anything you put in AShape must satisfy the statement “All shapes everywhere forever have a ________.” Things that can be invariant include (but are not necessarily limited to) a method’s presence, a field’s presence, a method’s […]