#include using namespace std; int c = 0; class Test { public: Test() { c++; cout << "Created object " << c << endl; } ~Test() { cout << "Destroyed object " << c << endl; c--; } }; int main() { Test t1, t2, t3; return 0; }