When is an object created and what is its lifetime?

Answer Posted / apurva jain

Object is created when constructor has to be invoked or
when have to access the class.Its Lifetime is throughout
the Execution of that Class.

Is This Answer Correct ?    31 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the problem with multiple inheritance?

686


What are functions in oop?

688


Give an example where we have to specifically use C programming language and C++ programming language cannot be used?

1242


What polymorphism means?

703


is there any choice in opting subjects like 4 out of 7

1822






What is a class and object?

688


What is the point of oop?

743


How to use CMutex, CSemaphore in VC++ MFC

4425


What are the 5 oop principles?

692


How do you define social class?

681


Explain virtual inheritance?

780


What is balance factor?

685


Write a program to sort the number with different sorts in one program ??

1992


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

2193


any one please tell me the purpose of operator overloading

2059