kotlin创建类的实例

Java 中使用new关键字,但是在kotlin中调用函数和创建类的实例直接省略new

比如 new myClass()变成类myClass()

猜你喜欢

转载自www.cnblogs.com/loaderman/p/10125802.html