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

In what situation factory design patterns,DAO design patterns,singleton design patterns should be applied.?

2 Answers  


why the argument is passed by reference to a copy constructor?example?

2 Answers  


What is abstraction encapsulation?

0 Answers  


4. What do you mean by a prototype? Define analysis prototype

1 Answers  


What is data binding?

4 Answers   Ittiam Systems,






DIFFRENCE BETWEEN STRUCTURED PROGRAMING AND OBJCET ORIENTED PROGRAMING.

5 Answers  


WHEN A COPY CONSTER IS CALL ?

4 Answers  


A file pointer always contains the __________ of the file

5 Answers  


Who invented oop?

0 Answers  


write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.

0 Answers   Wipro,


How is class defined?

0 Answers  


What does and I oop mean in text?

0 Answers  


Categories