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

  • (A) By overloading new operator and new[] operators
  • (B) By making an empty private new and new[] operators
  • (C) By making an empty private new operator.
  • (D) By overloading new operator
πŸ’¬ Discuss
βœ… Correct Answer: (B) By making an empty private new and new[] operators

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
201
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
98%
Success Rate