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...

In a class, there is a reference or pointer of an object of
another class embedded, and the memory is either allocated
or assigned to the new object created for this class. In
the constructor, parameters are passed to initialize the
data members and the embedded object reference to get
inialized. What measures or design change should be advised
for proper destruction and avioding memory leaks, getting
pointers dangling for the embedded object memory
allocation? Please suggest.

Answer Posted / mms zubeir

Sorry, there is an error in my above answer. In the first
statement, it is container class, not contained class.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is scope resolution operator in c++ with example?

1037


What is a singleton c++?

1008


What is a sequence in c++?

1017


Do you know what are static and dynamic type checking?

1065


What is one dimensional array in c++?

1112


What is c++ prototype?

1213


What are the different types of polymorphism in c++?

1142


How would you use the functions randomize() and random()?

1083


What does count ++ do in c++?

1205


Explain the concept of friend function in c++?

1115


Which is better c++ or java?

984


What is setbase c++?

1135


why is c++ called oops? Explain

1051


Implement stack operations with pointers with appropriate exception checks.

980


Why do we use structure in c++?

1082