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/Dialer.hh

36 lines
507 B
C++
Raw Normal View History

#include <iostream>
#ifndef DIALER_HH
#define DIALER_HH
#include "Button.hh"
class Dialer {
public:
2019-12-17 15:05:27 +01:00
Dialer() {
std::cout << "Dialer Constructor " << this << std::endl ;
init();
}
Dialer(const Dialer& other) {
std::cout << "Dialer Copy Constructor " << this << std::endl ;
init();
}
~Dialer() {
std::cout << "Dialer Destructor " << this << std::endl ;
delete[] buttons ;
}
private:
2019-12-17 15:05:27 +01:00
void init()
{
buttons = new Button[12];
}
Button* buttons ;
} ;
#endif