When is an object created and what is its lifetime?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / nikhil
global scope,if created outside class n local scope if
created inside a class......
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / alok pandey
When the constructor called then object created thus while
the programme execute till life of object
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / 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 |
to find out the minimum of two integer number of two different classes using friend function
How do you define social class?
What is the main difference between C++ and Java
Which is faster post increment or pre increment ? and in which cases should u use either - to increase speed?
What do we mean by a hidden argument in a function?
What is property in oops?
what is the difference between inter class and abstract class...?
what is multithreading in c++ , what is difference between multithreading and singlethreading.
what is object slicing
Can we create object of interface?
Finding of the 4 larger (bigger) numbers from the list like{1245,4587,2145,1163,29987,65783.....}
write string class as your own class in java without using any built-in function