March 2002
Intermediate to advanced
496 pages
8h 51m
English
The constructors of a well-designed class usually interact. Consider what happens when we need to add a classification attribute to the Firework class so that each firework is classified as a consumer firework or as a display-type firework. Figure 14.2 shows the Firework class picking up firework classification constants from the ClassificationConstants interface and adding a Classification attribute.

|
Read now
Unlock full access