#include #include "CounterT.h" using namespace std; CounterT::CounterT(): myId(count++) { ++realCount; } size_t CounterT::GetId(void) const { return myId; } size_t CounterT::GetRealCount(void) const{ return realCount; } size_t CounterT::GetTotalInstances(void){ // this line is not legal, why? //cout << "My id is " << myId << endl; return count; } void CounterT::AddInstances(size_t number) { count += number; } void CounterT::BlabAboutInstance(CounterT instance){ cout << "This has id " << instance.myId << endl; } size_t CounterT::realCount{0};