What is the purpose of operator new? Explain what happens when this keyword is used in an app.

What will be an ideal response?

The purpose of operator new is to create an object of a class. When operator new is
used in an application, first a new object of the class to the right of new is created, then
the class’s constructor is called to ensure that the object is initialized properly.

Computer Science & Information Technology

You might also like to view...

Input to the linker can include which of the following items?

a) object modules b) load modules c) control statements d) all of the above

Computer Science & Information Technology

________ restricts access to a shared variable to only one thread at any given time.

a) asynchronism b) serialization c) protection d) mutual exclusion

Computer Science & Information Technology