Invoking Base-Class Functions from Derived-Class Objects

Aim pointers (base, derived) at objects (base, derived)
Figure 1: Point class header file.
\includegraphics[scale=0.43]{figures/img10.4.ps}
Figure 2: Point class represents an xy-coordinate pair.
\includegraphics[scale=0.43]{figures/img10.5.ps}
\includegraphics[scale=0.43]{figures/img10.6.ps}
Figure 3: Circle class header file.
\includegraphics[scale=0.43]{figures/img10.7.ps}
\includegraphics[scale=0.43]{figures/img10.8.ps}
Figure 4: Circle class that inherits from class Point.
\includegraphics[scale=0.43]{figures/img10.9.ps}
\includegraphics[scale=0.43]{figures/img10.10.ps}
Figure 5: Assigning addresses of base-class and derived-class objects to base-class and derived-class pointers. (part 1 of 2)
\includegraphics[scale=0.43]{figures/img10.11.ps}
\includegraphics[scale=0.43]{figures/img10.12.ps}
Figure 6: Assigning addresses of base-class and derived-class objects to base-class and derived-class pointers. (part 2 of 2)
\includegraphics[scale=0.43]{figures/img10.13.ps}
\includegraphics[scale=0.43]{figures/img10.14.ps}
2004-07-26