abstract class A { def foo:String }
class B extends A { def foo:String = "hi" }
class C extends A { override def foo:String = "bye" }
Scala is cool with it whether or not you specify override in this
(common) situation. I think it should require one way or the other,
else the inevitably inconsistent subclasses emit needless noise.
--
Paul Phillips | It's better to have gloved and tossed than never to
Stickler | have played baseball.
Empiricist |
pull his pi pal! |----------*
http://www.improving.org/paulp/ *----------