Kotlin Constructor syntax design rationale?

后端 未结 0 923
醉酒成梦
醉酒成梦 2020-12-21 13:37

These two classes seem to me to behave identically:

class A constructor(ii_: Int) {
    var ii = 0
    var xx = 0.0F
    var msg = ""
    init {
            


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题