PrepAway - Latest Free Exam Questions & Answers

How many parameters can a default constructor have?

How many parameters can a default constructor have?

PrepAway - Latest Free Exam Questions & Answers

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.

2 Comments on “How many parameters can a default constructor have?


Leave a Reply