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 a constructor in c++ with example?

1180


Explain binary search.

1036


How important is c++?

1031


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2048


What is the use of structure in c++?

1079


Which one is a preferred language C or C++? Why?

1141


What is microsoft c++ redistributable?

1145


What is namespace std; and what is consists of?

1372


How does a copy constructor differs from an overloaded assignment operator?

1080


What is the full form of india?

1196


What is the latest c++ version?

1148


Write a program which uses Command Line Arguments

1225


What is implicit pointer in c++?

1138


What are manipulators used for?

1128


What is the sequence of destruction of local objects?

1015