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 |
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 normal C constructs work differently in C++?
Write on signed and unsigned integers and give three (3) examples each
What is difference between abstraction and encapsulation?
i am getting an of the type can not convert int to int *. to overcome this problem what we should do?
What are main features of oop?
what is different between oops and c++
What do you mean by pure virtual functions?
In multilevel inheritance constructors will be executed from the .... class to ... class
What is debug class?what is trace class? What differences are between them? With examples.
Which is the best institute in hyderabad for C/C++ and it also has fast track course structure.
Get me a number puzzle game-program