You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Model related data and behavior with Java records and classes.
19
20
- Protect object state through constructors and methods.
21
+
- Define invariants that remain true after construction and updates.
20
22
- Compare Java object modeling with C++, C#, Go, Python, and TypeScript.
21
23
22
24
## Done When
23
25
24
26
-[ ] I ran `structs-and-classes/example/Main.java`.
25
27
-[ ] I completed both `structs-and-classes` exercises.
28
+
-[ ] I ran `constructors-and-invariants/example/Main.java`.
29
+
-[ ] I completed both `constructors-and-invariants` exercises.
26
30
-[ ] I can explain when a Java record is enough and when a class is better.
27
31
-[ ] I can keep state updates behind methods instead of editing fields directly.
32
+
-[ ] I can explain how constructors protect invariants.
28
33
29
34
## Study Tip
30
35
31
-
This level is intentionally partial. Finish `structs-and-classes`before expanding into constructors, copy/reference behavior, inheritance, and generics.
36
+
This level is intentionally partial. Finish these object-state modules before expanding into copy/reference behavior, inheritance, and generics.
0 commit comments