Overloading new and delete operator is very useful for our own memory management. Let us try to understand the overloading of new and delete operator for…
Tag: Overloading Operator new and delete
Overload new and delete operator
new operator allocates the memory then calls the constructor. delete operator calls the destructor then delete the memory.
As these are operators, so it can be overloaded. But why we need to…