How many parameters can a default constructor have?

How many parameters can a default constructor have?

How many parameters can a default constructor have?

A.
0

B.
1

C.
2

D.
3 or more

Explanation:
If a class contains no instance constructor declarations, a default instance constructor is
automatically provided. That default constructor simply invokes the parameterless
constructor of the direct base class.



Leave a Reply 2

Your email address will not be published. Required fields are marked *