Difference between new operator and operator new
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nutan
pls refer
http://objectmix.com/c/34028-difference-between-new-operator-new.html
| Is This Answer Correct ? | 3 Yes | 4 No |
What is inheritance and how many types of inheritance?
Write 7 differences between "Public" function and "Private" function?
Why multiple inheritance is not allowed?
What is polymorphism ? Explain with examples
what is difference between objects and function
What are oops methods?
What is a friend function & its advantage?
wht is ditch
How compiler selects(internally) required overridden function in inheritance?
2 Answers CSC, Infinite Computer Solutions,
What is polymorphism what are the different types of polymorphism?
What are virtual classes?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?