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 2 of 3.

Premchandar777 said:   1 decade ago
The term default in the sense, it takes common value (default) when its not assigned.

Priyanka said:   1 decade ago
Constructor does not contain any argument called default constructor.

Alok raj said:   1 decade ago
Default constructor uses default values if it is required. The sense of "if it is required" is in this sense guys if less argument is given then required then only it is used.

So if no argument is given that it will use default values. Thus default constructor.

Rohit Patil said:   10 years ago
But parameter constructor takes an argument.

Shivam said:   10 years ago
In that case if we pass any parameter in the default constructor that can not be acceptable in the constructor.

Chandani said:   9 years ago
The default constructor does not accept parameter because it is the default that does not accept a parameter.

Tahseen ahmed said:   9 years ago
The correct answer is NO.

Because the default constructor is the constructor which is fired by the compiler when we declared the object in the main program and it allocates the memory to the object but does not give any value to it.

Venkataramana said:   9 years ago
The default constructor doesn't have any parameters because that is default created by the compiler at compile time. We no need to write a default constructor.

Shwetha said:   8 years ago
Here, we cannot passing any parameters into constructor.

Hariharan R said:   8 years ago
Whether parameters and arguments are different in meaning?


Post your comments here:

Your comments will be displayed after verification.