#ifndef BOARD_T #define BOARD_T #include #include class BoardT{ public: BoardT(std::string n):name(n){ std::cout << "Creating board " << name << std::endl; } ~BoardT() { std::cout << "Destroying board " << name << std::endl; } std::string Name(void) const{ return name;} int Width(void) const { return w;} int Height(void) const { return h;} int Data(int x, int y) const{ return y*w + x;} private: int w =5, h = 7; int * data; // pretend this is allocated in the constructor std::string name; }; #endif