Dynamic Allocation of Objects Quiz-Asked in Interviews

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

Solution: C is correct

Thanks for Reading

Placewit grows the best engineers by providing an interactive classroom experience and by helping them develop their skills and get placed in amazing companies.

Learn more at Placewit. Follow us on Instagram and Facebook for daily learning.




Upskilling students for tech placements!

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introducing Hoskeychains! Cardingo’s first series in the up and coming Hoskey Collection.

Issues Installing Homebrew on New Macbook M1 Silicon? Here’s How to Fix It.

Kubernetes Helm

Container with Maximum Water

Capturing container traffic on Kubernetes

Buyer beware: SharePoint version history

Quick Tip When Searching for Basic Web Info

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store


Upskilling students for tech placements!

More from Medium

Vasya and Socks Coding Question

Leetcode Q224. Basic Calculator (Q216)

LeetCode 203- Remove Linked List Elements

Data Structures: Traversing, Insertion & Deletion