Overloading Stream-Insertion and Stream-Extraction Operators

The program of Figs. 3.1-3.2 demonstrates overloading the stream-extraction and stream-insertion operators to handle data of a user-defined telephone number class called PhoneNumber.












Figure 3.1: Overloaded stream-insertion and stream extraction operators. (part 1 of 2)
\includegraphics[scale=0.45]{figures/img8.10.ps}
Figure 3.2: Overloaded stream-insertion and stream extraction operators. (part 2 of 2)
\includegraphics[scale=0.45]{figures/img8.11.ps}
\includegraphics[scale=0.45]{figures/img8.12.ps}


2004-12-28