| ||Classes and Objects - slide 29 : 29|
Initialization of class variables
It is too late - and not natural - to initialize class variables in ordinary constructors
- Initialization of a class variable of type T (at class load time)
- Via the default value of type T
- Via the static field initializers
- Via a static constructor
The class PlayingCard with a static constructor.
A client of class PlayingCard.
Output from the PlayingCard client program.