What was the recent update which google had and what changes would you suggest for it?
Question 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
How do I insert a list of figures in word 365?
How will you convert a string into a percentage?
Explain the balanced field takeoff?
What is recycling of elements in an r vector? Give an example.
How to test for bad numbers using javascript?
There is a delivery that is being created through the ABAP code and in the middle it says delivery created but someone is modifying , how would you rectify this issue
Compare CORBA security with security of other distributed object computing frameworks such as Java RMI or DCOM?
How does a Bandgap Voltage reference work?
What are the differences between single phase and three phase?
What is werfault exe application error?
Why yeast does not grow beyond a 1:10000 dilution ?
what is the procedure and explain about real time scenario.
What does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.