C++ Programming - Constructors and Destructors - Discussion

Discussion Forum : Constructors and Destructors - General Questions (Q.No. 1)
1.
A constructor that accepts __________ parameters is called the default constructor.
one
two
no
three
Answer: Option
Explanation:
No answer description is available. Let's discuss.
Discussion:
23 comments Page 3 of 3.

Sathish said:   1 decade ago
Why does not using of parameters ?

Himanshu dixit said:   1 decade ago
Compiler itself call constructor if no constructor is called with no parameter. Or if user provide constructor with zero parameter then compiler takes it.

Anuradha K said:   1 decade ago
Constructor with no parameters or any number of parameters with default values is called default constructor.

constrctr()
or
constrctr( int a = 1, int b = 2 )


Post your comments here:

Your comments will be displayed after verification.