115k views
5 votes
When a constructor function accepts no arguments, or does not have to accept arguments because of default arguments, it is called a(n:?

User Claro
by
6.6k points

1 Answer

4 votes

A constructor that doesn't need to accept arguments is a default constructor.


Default constructors can either be called with no arguments or with default arguments provided for every parameter.

User Rob Lauer
by
6.5k points