Difference between new operator and operator new

Answers were Sorted based on User's Feedback



Difference between new operator and operator new..

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

Difference between new operator and operator new..

Answer / nutan

pls refer
http://objectmix.com/c/34028-difference-between-new-operator-new.html

Is This Answer Correct ?    3 Yes 4 No

Post New Answer

More OOPS Interview Questions

What is polymorphism in oops with example?

0 Answers  


What is encapsulation example?

0 Answers  


What is a class oop?

0 Answers  


Write a program in c++ to read two floating point numbers and find their sum and average.

2 Answers  


what is the difference b/w abstract and interface?

2 Answers   Merrill Lynch, Schneider, Scio Healthcare,






What polymorphism means?

0 Answers  


What is class and example?

0 Answers  


what is the new version of oops

0 Answers   Ignou,


what do you mean by static member variable?

2 Answers  


If a=5, b=6, c=7, b+=a%c*2. What is the final value of b?

0 Answers  


What is debug class?what is trace class? What differences are between them? With examples.

0 Answers  


What is the real time example of encapsulation?

0 Answers  


Categories