1
0
Fork 0
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.
uni-m.cds-adv-prog/ex4.1/Handset.hh

32 lines
576 B
C++

#include <iostream>
#ifndef HANDSET_HH
#define HANDSET_HH
#include "Mouthpiece.hh"
#include "Earpiece.hh"
#include "Cable.hh"
class Handset {
public:
Handset() { std::cout << "Handset Constructor " << this << std::endl ; }
Handset(const Handset& h) :
mouthpiece( h.mouthpiece ),
earpiece( h.earpiece ),
cable( h.cable )
{
std::cout << "Handset Copy Constructor " << this << std::endl ;
}
~Handset() { std::cout << "Handset Destructor " << this << std::endl ; }
private:
Mouthpiece mouthpiece ;
Earpiece earpiece ;
Cable cable ;
} ;
#endif