class
This commit is contained in:
parent
3d99658438
commit
4a8afb3638
17
src/class/Person.kt
Normal file
17
src/class/Person.kt
Normal file
@ -0,0 +1,17 @@
|
||||
package `class`
|
||||
|
||||
/**
|
||||
* 类
|
||||
*
|
||||
*/
|
||||
class Person {
|
||||
val type: String = "earthman"
|
||||
var age: Int = 20
|
||||
var sex: Int = 0
|
||||
lateinit var name: String
|
||||
init {
|
||||
this.sex = 1
|
||||
this.age = 23
|
||||
this.name = "张三"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user