codebeast
05/19/2017, 8:01 AMclass Person(val name: String) {
constructor(name: String, parent: Person) : this(name) {
parent.children.add(this)
}
}
and here:
class MyView : View {
constructor(ctx: Context) : super(ctx)
constructor(ctx: Context, attrs: AttributeSet) : super(ctx, attrs)
}
Wondering if I could get a clearer description of what happens. Thanksmyanmarking
05/19/2017, 10:51 AMkingsley
05/19/2017, 11:48 AM