Created
November 23, 2010 13:22
-
-
Save anonymous/711741 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
trait Qux { | |
override def bar(msg:String="Qux Says Hello") = { | |
super.bar() | |
println("qux: " + msg) | |
} | |
} | |
class Foo { | |
def bar(msg:String="Foo Says Hello") = println(msg) | |
} | |
val f = new Foo() with Qux | |
f.bar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment