Kotlin .. Java Concepts Clarification(1): Property and Field
Kotlin .. Java concepts clarification(1): Property and Field在Kotlin中引入了property的概念,但property并非等同于Java中的fields:
property隐式的包含了fields,但比fields更高级,例如下面的两段代码是等同的:
// Kotlinvar name: String = "Kotlin"// Jav
原创
2017-12-09 22:37:34 ·
335 阅读 ·
0 评论