摘要:
package cn.itcast /** * Created by lishas on 2016/8/22. */object ApplyDemo { def apply(): Unit ={ println("apply invoked") } def apply(name:String):St 阅读全文
posted @ 2017-05-01 11:20
入门到精通—从一而终
阅读(3213)
评论(0)
推荐(0)
摘要:
package cn.itcast.scala.day2 /** * Created by ZhaoXing on 2016/6/27. *///跟类名交织在一起的叫 主构造器class Student (val name: String, var age: Int, faceValue: Doub 阅读全文
posted @ 2017-05-01 10:45
入门到精通—从一而终
阅读(742)
评论(0)
推荐(0)
摘要:
package cn.itcast.scala.day2 /** * Created by ZhaoXing on 2016/6/27. */class Person { val id = "9527" var age : Int = 18 private var name: String = "唐 阅读全文
posted @ 2017-05-01 10:34
入门到精通—从一而终
阅读(196)
评论(0)
推荐(0)

浙公网安备 33010602011771号