Category : C++ Source Code
Archive   : TEACHCPP.ZIP
Filename : EX09009.CPP

 
Output of file : EX09009.CPP contained in archive : TEACHCPP.ZIP

// ex09009.cpp
// References to base and derived classes
#include
#include "disptime.h"

main()
{
DispTime dt(21, 42, 12, pst);
Time& tp = dt;
TimeZone& zp = dt;
DispTime& dp = dt;
tp.display();
cout << '\n';
zp.display();
cout << '\n';
dp.display();
}