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
class type to basic type conversion
What is polymorphism and its types?
What is difference between oop and pop?
What is polymorphism in oop example?
Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)
What is overloading and its types?
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What is solid in oops?
Can private class be inherited?
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is difference between pop and oop? any one please tell me the purpose of operator overloading
What is the difference between a mixin and inheritance? What is data binding in oops? What is destructor example?