C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 5)
5.
For automatic objects, constructors and destructors are called each time the objects
enter and leave scope
inherit parent class
are constructed
are destroyed
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
24 comments Page 2 of 3.

Goral said:   1 decade ago
Please, give me answer 'what is automatic object?'.

Lilly said:   1 decade ago
What is the mean of automatic object? then I feel it should create automatically at runtime according to the method. Thats write?

Vikrant said:   1 decade ago
Constructor Special type of member function whose name same as class name constructor are automatically called when object is created and Enter in leave in scope.

Destructor are automatically called when object is Destroyed.

Vikrant said:   1 decade ago
Automatic object means Constructor can not need to called by using object.

Ganesh said:   1 decade ago
That is correct automatic object means Constructor can not need to called by using object.

Viknesh said:   1 decade ago
An automatic object is not a dummy argument. An automatic object always has the controlled automatic storage class.

Kanha said:   1 decade ago
Automatic object is local object of any function like "this".

Shital Jawale said:   1 decade ago
When object is created the constructor will automatically called.

Shital Jawale said:   1 decade ago
When object is created the call goes automatically to the constructor.

Dhivya said:   10 years ago
I need clear answer with explanation.


Post your comments here:

Your comments will be displayed after verification.