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

Why do we need pointers?

952


What is the importance of mutable keyword?

989


Tell me can a pure virtual function have an implementation?

968


What are separators in c++?

1037


Explain rtti.

1028


What is cout flush?

960


What is a stack? How it can be implemented?

1128


Am pass the 10000 records to target in target I will take commit interval 15000 when I was stop the work flow what will happened

1511


Explain the isa and hasa class relationships.

995


Where are setjmp and longjmp used in c++?

1051


What is a storage class? Mention the storage classes in c++.

978


What is static in c++?

1007


List the types of polymorphism in c++?

1058


What is the object serialization?

1098


What is constructor c++?

1067