2009-11-11 overload scala class A { def hoge(param: Int) { println("Int -> " + param) } def hoge(param: String) { println("String -> " + param) } } var a = new A() a.hoge(1) //=> Int -> 1 a.hoge("1") //=> String -> 1