Q.

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

A. By overloading new operator
B. By making an empty private new operator.
C. By making an empty private new and new[] operators
D. By overloading new operator and new[] operators
Answer» C. By making an empty private new and new[] operators
1.5k
0
Do you find this helpful?
14

View all MCQs in

CPP Programming

Discussion

No comments yet

Related MCQs