When is an object created and what is its lifetime?

Answer Posted / yathirajulu

whenever developer is required, and the life-time is when we
assinging null or close the program(application).

Is This Answer Correct ?    2 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is abstract class in oops?

676


What is abstraction in oops with example?

874


any one please tell me the purpose of operator overloading

2059


What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?

2193


write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).

1731






What do you mean by Encapsulation?

728


How to use CMutex, CSemaphore in VC++ MFC

4425


Why do we use class?

724


What are two types of polymorphism?

694


Why is oop useful?

699


Write A Program to find the ambiguities in Multiple Inheritance? How are they resolved.(Virtual Functions)

3659


Write a program to implement OOPS concepts such as inheritance, polymorphism, friend function, operator overloading?

4343


Is data hiding and abstraction same?

662


What is a class in oop?

678


What is object in oop?

782