- Base class and derived class relationship
- Example: Point/circle inheritance hierarchy
- Point
x-y coordinate pair
- Circle
x-y coordinate pair
Radius
Figure 4.3:
Point class header file
|
Figure 4.4:
Point class represents an xy-coordinate pair. (part 1 of 2)
|
Figure 4.5:
Point class represents an xy-coordinate pair. (part 2 of 2)
|
Figure 4.6:
Point class test program.
|
Subsections
2004-07-29