Kotlin:类

在Kotin中创建一个类:

class name{
    
}

 

 

创建类的对象(类的实例化):

 

posted @ 2021-12-03 23:01  无限赫兹  阅读(38)  评论(0)    收藏  举报