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 |
What is the differances between a abstract calss and interface
Difference ways of Polymorphism?
What is polymorphism in oops with example?
What is polymorphism in oop example?
Advantage and disadvantage of routing in telecom sector
What is difference between inheritance and polymorphism?
the difference between new and malloc
WHY FUCTION OVERLOADING DOSENOT RETURN A RETEN TYPE
What is class encapsulation?
Name an advantage of array over linked list?
24 Answers GML, IBM, Software Solutions,
what is diff between .net 1.1 and .net 2.0
Why many objects can working together? How objects working togetherM I want to see example code.