1 2 3 4 5 6 7
object Test extends Application { case class A() class B extends A() { override def toString() = "B()" } println(A()) println(new B()) }