This repository has been archived on 2021-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
2019-11-14 22:12:20 +01:00
|
|
|
#ifndef TELEPHONE_HH
|
|
|
|
#define TELEPHONE_HH
|
|
|
|
|
|
|
|
#include "Cable.hh"
|
|
|
|
#include "Housing.hh"
|
|
|
|
#include "Dialer.hh"
|
|
|
|
#include "Handset.hh"
|
|
|
|
|
|
|
|
class Telephone {
|
|
|
|
public:
|
|
|
|
|
2020-06-30 12:57:01 +02:00
|
|
|
Telephone() {
|
|
|
|
std::cout << "Telephone Constructor " << this << std::endl;
|
|
|
|
}
|
2020-07-01 14:34:41 +02:00
|
|
|
Telephone(const Telephone& t ) :
|
|
|
|
cable( t.cable ),
|
|
|
|
housing( t.housing ),
|
|
|
|
dialer( t.dialer ),
|
|
|
|
handset( t.handset ) {
|
2020-06-30 12:57:01 +02:00
|
|
|
std::cout << "Telephone Copy Constructor " << this << std::endl;
|
|
|
|
}
|
|
|
|
~Telephone() {
|
|
|
|
std::cout << "Telephone Destructor " << this << std::endl;
|
|
|
|
}
|
2019-11-14 22:12:20 +01:00
|
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
Cable cable ;
|
|
|
|
Housing housing ;
|
|
|
|
Dialer dialer ;
|
|
|
|
Handset handset ;
|
|
|
|
|
|
|
|
} ;
|
|
|
|
|
|
|
|
#endif
|