// File: dmc.cpp // // Implementation file of dmc.h #include #include "dmc.h" using namespace std ; int DMC::count = 0 ; DMC::DMC() { ++count ; number=count ; cout << "Creating DMC Object #" << number << endl ; ptr = new int[10] ; } DMC::~DMC() { cout << "Destroying DMC Object #" << number << endl ; delete [] ptr ; } const DMC operator+(const DMC& X, const DMC& Y) { return DMC() ; }