contructor1

PHOTO EMBED

Fri Sep 16 2022 06:14:16 GMT+0000 (Coordinated Universal Time)

Saved by @kodekutulisanku #c++

#include <iostream>
using namespace std;
class A{
public:
	A(){
		cout<<"Constructor called\n";
	   }
	~A(){
		cout<<"Destructor called\n";
	    } 
};
int main(int argc, char const *argv[])
{
	A *a = new A[5];
	delete[] a;
	return 0;
}
content_copyCOPY