Chapter 8: Designing Classes

New ASMSU Tutor Available

Desirable Class Characteristics

Definitions

Side Effects

Lecture Code

We used the sample solution for Program 1 below to demonstrate the above concepts. We also decoupled the GringottsAccount class from the System.out class by replacing the printAccount method with to toString method. The TestProgram was updated to use this new method.

Valid XHTML 1.0!