What is Time period of a building and its relation with frequency ?
Explain an overview of xml.
How to connect to an InterBase database using the BDE API?
What are Host and Host Instance?
Why is c# a good programming language?
what are the applications where bearing should not be used though it can be used(economy may be 1 of the reason)
Can you put a table within bootstrap panel?
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
Hi,iam a diploma in electrical engineering.rtd from indian air force in apr 2007.prsently working in reliance next link as a network maintenance engineer since 2007,can i get a job in motherson sumi.
What are the Parameters in Tableau?
What is the strategy used to test new mobile app?
Lines of code (LOC) and function point counts (FPC) are two measures of the size of a system. Explain the advantages and disadvantages of using these two metrics for measuring systems.
From your test script how you can create html test report?
What is anagram of a string?
What are ajax limitations?