Does Kotlin support this syntax, I am copying this from my Swift class
Class { var a: String var b: Int var c: Bool init(a: String = "", b: Int = 0, c: Bool = false) { self.a = a self.b = b self.c = c } }
On the init constructor I have provided default values. This allows me to call the constructor without some of the properties as they are assigned default values
Class(a: "name", b: "1000")
value of c will be false without calling on my Class
submitted by /u/ChemicalGiraffe
[link] [comments]