C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 36)
36.
Which of the following gets called when an object is being created?
constructor
virtual function
destructor
main
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
2 comments Page 1 of 1.

Divya said:   8 years ago
How, Can anyone explain?

Madhusudhan said:   1 decade ago
Whenever an object is created constructor is invoked by the compiler.

Post your comments here:

Your comments will be displayed after verification.