1#include <iostream>
2
3using namespace std;
4
5class A {
6 public: A() // constructor
7 {
8 cout << "Constructor executed" << endl;
9 }~A() // Destructor
10 {
11 cout << "Destructor executed" << endl;
12 }
13};
14int main() {
15 A(); // calling constructor
16 A(); // calling constructor
17}