标签:style color java 使用 文件 ar div 代码
package com { package horstmann { object Utils { def percentOf(value: Double, rate: Double) = value * rate / 100 } package impatient { class Employee { def giveRaise(rate: scala.Double) { var salary = 100.0 salary += Utils.percentOf(salary, rate) } } } } } |
package com.horstmann.impatient { package people { class People { } } } |
package com.horstmann.impatient package object people { val defaultName = "John" } package people { class people { var name = defaultName //从包对象拿到的常量 } } |
标签:style color java 使用 文件 ar div 代码
原文地址:http://blog.csdn.net/shijiebei2009/article/details/38704389