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

What is inheritance and how many types of inheritance?

1105


Why is it so that we can have virtual constructors but we cannot have virtual destructors?

4947


What are classes oop?

1027


What is interface in oop?

1130


Where You Can Use Interface in your Project

1892


What is class encapsulation?

1096


When not to use object oriented programming?

1110


What is multilevel inheritance?

1200


What is object-oriented programming? Webopedia definition

1263


Write a program to reverse a string using recursive function?

2342


What is the real life example of polymorphism?

1177


How do you define social class?

1066


What is difference between abstraction and encapsulation?

1083


What is abstraction oop?

1099


Can we have inheritance without polymorphism?

1027