Default constructor ______.
a. Has one argument
b. Has no return type
c. Has one argument but no return type
d. Has no argument
Answers
Answered by
0
Option B. It has no return type.
Thanks
Thanks
Answered by
1
Default constructor has no argument (option d).
A default function has no parameters or has default values for all of the parameters if it does have parameters. If a class A has no user-defined function and one is required, the compiler declares a default parameterless function A::A() implicitly.
Similar questions