Tell us about yourself.
Answer Posted / karuppasamy
let me introduce my self,
my name is karuppasamy kaliappan,basically i am from theni, but now i m staying in chennai,i have complete my B.E in ECE from sasurie college of engg,i have done my 12th from Z.K.M.higher secondary school.
about my family there r four members in my family.one younger brother and my parents.my father is working as telephone line man in BSNL,my motheris an home maker.my younger study B.COM first year,
my hobbies playing cricket,gym,listing songs,watching movie.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can destructor be overloaded?
why reinterpret cast is considered dangerous?
What exactly is polymorphism?
What is stream in oop?
What is encapsulation example?
What does <> mean pseudocode?
What is polymorphism oop?
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
What is object and class in oops?
What is the difference between encapsulation and polymorphism?
How do you explain polymorphism?
What is encapsulation in oops?
What are two types of polymorphism?
What is abstract class in oop?
Why is polymorphism used?