会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
wp7ers
博客园
首页
新随笔
联系
订阅
管理
2019年1月14日
kotlin class
摘要: 每个次构造函数需要委托给主构造函数, 可以直接委托或者通过别的次构造函数间接委托。委托到同一个类的另一个构造函数用 this 关键字即可 class Person { constructor(parent: Person) { parent.children.add(this) }} kotlin
阅读全文
posted @ 2019-01-14 17:16 wp7ers
阅读(186)
评论(0)
推荐(0)