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 ?    30 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 3 principles of oop?

624


What is a class in oop?

608


write a programe to calculate the simple intrest and compund intrest using by function overlading

1672


What is overriding in oop?

554


What is interface? When and where is it used?

1667






What is abstraction and encapsulation?

577


What is encapsulation oop?

581


What is difference between inheritance and polymorphism?

577


What is polymorphism and example?

594


What is interface in oop?

664


How to use CMutex, CSemaphore in VC++ MFC

4335


What is the purpose of polymorphism?

683


given a set based questions and 5 questions based on it next data sufficiciency questions 2 and 2/3 english sentence completion with options very easy and 2 synononmys paragraph with 10 questions 10 minutes replace =,-,*,% with -,%,+,* type questions 5 3 questions lik following itssickhere itssickthere itssickhere istsickhere which is nt alike the others very easy

2150


State what is encapsulation and friend function?

703


What is encapsulation in oops?

541