Answer Posted / skybeaver
The "new" operator allocates a new instance of an object
from the heap, utilising the most appropriate constructor
for the arguments passed.
Like many operators in C++, the "new" operator for a
particular class can be overriden, although there is rarely
a need to do so. "operator new" is the mechanism for
overriding the default heap allocation logic. Ask your
interviewer to provide you with a concrete example of when
he or she has been required to do this.
Is This Answer Correct ? | 14 Yes | 2 No |
Post New Answer View All Answers
What is object in oop?
What is abstraction oop?
Which is not an object oriented programming language?
What is encapsulation example?
what is different between oops and c++
Why do we use encapsulation in oops?
Why is destructor used?
write a programe to calculate the simple intrest and compund intrest using by function overlading
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What is polymorphism in oops with example?
how to get the oracle certification? send me the answer
Can destructor be overloaded?
What is use of overloading?
What is a class and object?
What is pure oop?