摘要:
1 package cn.scala_base.oop.scalaobject; 2 3 class Boy(name: String) { 4 private var age: Int = 0; 5 6 println(name); 7 8 def this(name: String, age: Int) { 9 //调用主构造器 10 th... 阅读全文
posted @ 2018-11-29 16:31
tele
阅读(751)
评论(0)
推荐(0)

浙公网安备 33010602011771号