35 lines
507 B
C++
35 lines
507 B
C++
#include <iostream>
|
|
#ifndef DIALER_HH
|
|
#define DIALER_HH
|
|
|
|
#include "Button.hh"
|
|
|
|
class Dialer {
|
|
public:
|
|
|
|
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:
|
|
|
|
void init()
|
|
{
|
|
buttons = new Button[12];
|
|
}
|
|
|
|
Button* buttons ;
|
|
|
|
} ;
|
|
|
|
#endif
|