📅  最后修改于: 2022-03-11 14:49:17.529000             🧑  作者: Mango
代码示例2
class Person {
var children: MutableList = mutableListOf<>()
constructor(parent: Person) {
parent.children.add(this)
}
}