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.
5 7647Post New GE C++ General Interview Questions
Explain the difference between C and C++.
What is advantage and disadvantage of linked list?
What is the basic difference between an alert box and a confirm box?
What is update task
How Can Port Number Be Checked ?
What is difference between requestmapping and getmapping?
Where are posts saved in wordpress?
What is vector string in c++?
For what building Built-on balconies are preferable? What are the advantages?
How can we call the base method without creating an instance?
What is the difference between sessionstate and viewstate?
I don't have websphere installed on my web server how do I add to the websphere administration console ?
difference between compute and mapping node?
I want to insert userid of a customer,order time,etc in a table called ordermaster with orderid as primary key.Same time the product codes and required quantities (a1,2 and a2 4 and so on)inserted in another table orderdetails with same orderid reference.How the code will be in JSP using MySQL?
What is the difference between sap basis and sap abap?