rbwhitaker / CSharpPlayersGuideEarlyAccess

A place to track issues with the C# Player's Guide for patches and future editions
19 stars 0 forks source link

[9a] Page 150 Multiple constructors sentence is unclear #633

Closed rbwhitaker closed 2 years ago

rbwhitaker commented 2 years ago

A class can define as many constructors as you need. Each of these must differ in number or types of parameters.

This isn't quite as clear as I'd have liked, and on Discord, I suggested this alternative:

A class can define as many constructors as you need. However, you must be able to tell them apart from their parameter list. They either need different numbers of parameters or at least some of the parameters must differ in type.

The code below...