object B extends A { def main(args: Array[String]): Unit = { println(foo) } }