Invoking Base-Class Functions from Derived-Class Objects

Aim pointers (base, derived) at objects (base, derived)
Figure 5.1: Point class header file.
\includegraphics[scale=0.43]{figures/img10.4.ps}
Figure 5.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 4.7: Circle class header file.
\includegraphics[scale=0.43]{figures/img10.7.ps}
\includegraphics[scale=0.43]{figures/img10.8.ps}
Figure 5.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.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 5.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-12-28