Luis Munoz
08/08/2019, 3:48 PMShawn
08/08/2019, 3:51 PMdata class Example (
val myName : String = "ellis"
) {
constructor(notDefault: Boolean) : this(if (notDefault) "not ellis" else "ellis")
}
Luis Munoz
08/08/2019, 3:53 PMShawn
08/08/2019, 3:54 PMoperator fun invoke()
to mimic a constructor callLuis Munoz
08/08/2019, 3:54 PM