- Base class and derived class relationship
- Example: Point/circle inheritance hierarchy
- Point
x-y coordinate pair
- Circle
x-y coordinate pair
Radius
Figure 3:
Point class header file
|
Figure 4:
Point class represents an xy-coordinate pair. (part 1 of 2)
|
Figure 5:
Point class represents an xy-coordinate pair. (part 2 of 2)
|
Figure 6:
Point class test program.
|
Subsections
2004-07-22