How can we restrict dynamic allocation of objects of a class using new?

Question:
 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


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!