Skip to content

Instantly share code, notes, and snippets.

Created November 23, 2010 13:22
Show Gist options
  • Save anonymous/711741 to your computer and use it in GitHub Desktop.
Save anonymous/711741 to your computer and use it in GitHub Desktop.
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