Introduction to OOP: Chapter 8: The Solitaire Game
[next]
[previous]
[audio]
[real]
[text]
Features to note
-
No enumerated data types
-
No global variables (or constants)
-
Use of static data fields for this purpose
-
Variables can be used before they are defined
(classes, too)
-
Final makes single-assignment, cannot be redefined
-
Boolean data field (similar to C++ bool)
-
Accessors to reference rank and suit, makes them read-only
-
Drawing is more complex
Intro OOP, Chapter 8, Slide 4