Defining Classes

Previously, we examined how objects from a given class can be instantiated and used. Our next goal is to look at the code which defines a Class.

For this purpose, we will examine the CyberPet Case Study, which is an ongoing example from the text. It is introduced in Ch. 2, and expanded throughout Ch. 3. In class, we started with the initial version of the CyberPet, as definined in Figure 2-8 and then built up to the version given in Figure 3-10.

The outline of issues discussed in that context includes:


Michael Goldwasser
Last modified: Friday, 30 January 2004