https://kotlinlang.org logo
#spring
Title
j

Jason Feng

09/18/2019, 11:12 AM
Thanks for all the help and links guys, much appreciated. After all the suggestions and in-depth links, if I understand it correct, the way to go is using the normal
class
with optional
var
properties, for the default
constructor
, take all the mandatory fields first, then the optional fields.
s

sdeleuze

09/18/2019, 12:52 PM
Sounds mostly ok, but I am not sure about the "optional
var
properties" part. You can use mandatory
var
properties as well.
👍 1
3 Views