#odersky-programming-in-scala-2ed #scala
You can do anything in a trait definition that you can do in a class definition, and the syntax looks exactly the same, except:
- a trait cannot have any “class” parameters
- whereas in classes, super calls are statically bound, in traits, they are dynamically bound.