How can we restrict dynamic allocation of objects of a class using new?
1. By overloading new operator
2.By making an empty private new operator.
3.By making an empty private new and new[] operators
4.By overloading new operator and new[] operators
Posted Date:-2022-07-04 03:34:10