C++ Programming - OOPS Concepts - Discussion

Discussion Forum : OOPS Concepts - General Questions (Q.No. 17)
17.
Which of the following statement is correct?
A constructor is called at the time of declaration of an object.
A constructor is called at the time of use of an object.
A constructor is called at the time of declaration of a class.
A constructor is called at the time of use of a class.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
26 comments Page 3 of 3.

Simran said:   1 decade ago
Constructor is automatically called when we create the object.

Sathriyan said:   1 decade ago
When object is created automatically constructor is declared.

Ruthrakarthik said:   1 decade ago
I think constructor will be called when object initialized.

Shashikala.R said:   1 decade ago
How we can use copy constructors in real world problems?

Poonam said:   1 decade ago
Constructor is called as soon as the object is invoked.

Narmadhasrinivasan said:   1 decade ago
Can you tell me whats the use of constructor?


Post your comments here:

Your comments will be displayed after verification.