#include using namespace std; class A { public: A() { cout << "Object created" << endl; } ~A() { cout << "Object destroyed" << endl; } }; int main() { A a; { A b; } return 0; }