top | item 33358896

(no title)

mrcarrot | 3 years ago

> And what if I don't want to have my constructor parameters as properties, maybe because I process them somehow in the constructor, and set some other properties instead?

Then you don't use property promotion. It's optional: it only happens if you add a visibility modifier before the parameter name.

discuss

order

No comments yet.