Basic classes hold per-object state. Production verification also needs class-level state, access control, parameterization, frozen constants and organized files.
Lesson | What it covers |
|---|---|
One shared counter for the whole class, and the limits of static methods. | |
Who may see each member, and a checker that hides its expected queue. | |
One template stamped into distinct checked types with separate statics. | |
Frozen per-object values, enum kind fields and one shared lookup table. | |
Prototypes inside the class with bodies outside, plus the package library. |
A static property counts across all objects. A local queue hides the expected list behind methods. A parameterized class serves both protocols as two distinct checked types.