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
What do you mean by overloading?
What is encapsulation process?
Can we have inheritance without polymorphism?
What do you mean by Encapsulation?
What is class and object in oops?
What does and I oop mean in text?
Will I be able to get a picture in D drive to the c++ program? If so, help me out?
What is an advantage of polymorphism?
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What is encapsulation in simple terms?
Why multiple inheritance is not possible?
Can main method override?
What is the problem with multiple inheritance?
What is class encapsulation?
What is the purpose of enum?