Created
December 7, 2014 12:33
-
-
Save tanacasino/5cb6c6dd2ad5124eb98b to your computer and use it in GitHub Desktop.
コップ本のtraitのメソッド解決順序の話
This file contains hidden or 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 | |
trait Furry extends Animal | |
trait HasLegs extends Animal | |
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