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 6278Post New GE C++ General Interview Questions
Is .net framework going away?
what is the difference between software development lifecycle and system development lifecycle
Explain about fail safe iterators in java?
How can an element be checked if it contains a specific class?
How much faster is Apache spark than Hadoop?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
How to optimize a report in microstrategy environment?
Which module is used for buffer based operations?
Explain path?
Wat is jms client?
what is domain functional level in windows server 2003?
How do you shrink a legal document to letter size?
What is the difference between client-side and server-side validations in ASP.NET?
What are the basic tags of html?
What is Big Data?