35 lines
617 B
C++
35 lines
617 B
C++
#ifndef TELEPHONE_HH
|
|
#define TELEPHONE_HH
|
|
|
|
#include "Cable.hh"
|
|
#include "Housing.hh"
|
|
#include "Dialer.hh"
|
|
#include "Handset.hh"
|
|
|
|
class Telephone {
|
|
public:
|
|
|
|
Telephone() {
|
|
std::cout << "Telephone Constructor " << this << std::endl;
|
|
}
|
|
Telephone(const Telephone& t ) :
|
|
cable( t.cable ),
|
|
housing( t.housing ),
|
|
dialer( t.dialer ),
|
|
handset( t.handset ) {
|
|
std::cout << "Telephone Copy Constructor " << this << std::endl;
|
|
}
|
|
~Telephone() {
|
|
std::cout << "Telephone Destructor " << this << std::endl;
|
|
}
|
|
|
|
private:
|
|
|
|
Cable cable ;
|
|
Housing housing ;
|
|
Dialer dialer ;
|
|
Handset handset ;
|
|
|
|
} ;
|
|
|
|
#endif
|