Created
August 8, 2019 15:51
-
-
Save invkrh/9d6d38624fcbb9618d121c44e62ace02 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
class Animal { def a = 1 } | |
trait Furry extends Animal { | |
override def a = 2 | |
} | |
trait HasLegs extends Animal { | |
override def a = super.a | |
} | |
trait FourLegged extends HasLegs | |
class Cat extends Animal with Furry with FourLegged |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment