primary constructor
Also written: constructor
The parameters after a class's name, which are the values every new object needs. Putting `val` or `var` in front makes each one a property.
Also written: constructor
The parameters after a class's name, which are the values every new object needs. Putting `val` or `var` in front makes each one a property.