C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 8)
8.
Which of the following statement is incorrect?
Constructor is a member function of the class.
The compiler always provides a zero argument constructor.
It is necessary that a constructor in a class should always be public.
Both B and C.
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
34 comments Page 4 of 4.

Arjun Mandavkar said:   4 years ago
@Amit Kumar Giri.

Your Explanation is very accurate. Thanks.

Manish said:   1 decade ago
Can we create static constructor?

Wild said:   4 years ago
Constructor is a member function!

JJ A said:   1 decade ago
It can be any of them.


Post your comments here:

Your comments will be displayed after verification.