文章列表
import scala.actors._ import scala.actors.Actor._ case class Point(val x: Double, val y: Double) { //override def toString() = "Point(" + x + "," + y + ")" //using case keywords ,we no longer need to imp toString // def drawCurry(str:String)= println(str); ...