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.
GE,
5 8524What is the meaning of Generate Asset Classes From GL Accounts. Kindly can any one tell me what is the meaning of this in detail.
2239Question 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. Question Submitted By :: Sunil Kumar I also faced this Question!! Rank Answer Posted By Re: 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 # 1 use copy constructors 0 Shanthila There is something to be taken care in destructor, in copy constructor, suppose the memory is assigned to the embedded member object pointer with the parameter passed value, but if some other objects of different class also are pointing to this memory, then if some one deletes the object then this class member pointer object will become dangling, or if the object is not deleted properly then there will be memory leak. Please suggest the design change required to handle or avoid this situation
TCS,
2148what is the size of this class class size { public: char data1; double d; int data2; char data3; double data4; short data5; }; please explain the padding for these double variables.
9 11571how to write a Classical batch input program using transaction FK01 to create vendor/change the vendor address into R/3 system. (Call Transaction Method) plz mention the detail coding Tahnks, Rahul
TCS,
1 7073What is the reason behind reclassifying payables & receivables as FI month end activity?
IBM,
3 17887watz the difference between abstract class and interface? Which one u ill choose as a designer?
1 5406
Can you give names of Container classes?
What is the SimpleTimeZone class?
Highest level event class of the event-delegation model?
Name the class that is used to bind the server object with RMI Registry?
What class is used to create Server side object ?
What are the steps to create classes?
Tell me the Importent classes in net package?
What are the scope of the class?
You been asked to prepare a training class for completing expense statements. What points will you emphasize to insure accurate expense statements are submitted?
what is the basic difference in the formation of spores in subclasses basidiomycetes and ascomycetes?
how we can know the funcions available in a class recording java?
Difference between Class Module and Standard Module?
How would you create properties by using class Builder Wizard?
Can DES be used to protect classified information?
A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables?