I don't understand why we would ever need to initialise them separately if all 3 of them are then initialised at the last point anyway.
Daniel Whyte
Level 17
Initialise
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Nouser
14 January 2021, 17:54
The Java api defines a lot of facory methods for convenience and safety reasons. And such initalizers are the base for that. Also that's the way to using constructors.
+1