2019年8月1日

scala面向对象编程

摘要: //scala 中简单的类的实例化调用object test { def main(args: Array[String]): Unit = { val hello=new student hello.increase() println(hello.fun()) } class student{ private var age=18 val name=... 阅读全文

posted @ 2019-08-01 15:40 床上小老虎 阅读(187) 评论(0) 推荐(0)

导航