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
Can destructor be overloaded?
write a program to find 2^n+1 ?
why reinterpret cast is considered dangerous?
What is static modifier?
Is react oop?
What are oops functions?
Where You Can Use Interface in your Project
What is a class and object?
write a program to enter a string like"sunil is a good boy and seeking for a job" not more than 10 characters including space in one line,rest characters should b in other line.if the next line starts from in between the previous word,then print whole word to next line.
What do you mean by Encapsulation?
What are the advantages of polymorphism?
What is the real time example of inheritance?
What is difference between polymorphism and inheritance?
How do you define a class in oop?
Give two or more real cenario of virtual function and vertual object