Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Difference between new operator and operator new

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


Please Help Members By Posting Answers For Below Questions

How do you explain polymorphism?

1057


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

2171


What do you mean by Encapsulation?

1076


write string class as your own class in java without using any built-in function

2483


Why we use classes in oop?

1012


Can we create object of abstract class?

1068


What is persistence in oop?

1129


What is multilevel inheritance?

1187


why reinterpret cast is considered dangerous?

2375


i=20;k=0; for(j=1;k-i;k+=j<10?4:3) { cout<

1839


What are the features of oop?

1146


What is oops?what is its use in software engineering?

1014


Why do we use polymorphism?

1062


What are oops functions?

996


How can you overcome the diamond problem in inheritance?

1166