Last active
January 31, 2016 10:58
-
-
Save erangaeb/0b5b693d84faa519de6b to your computer and use it in GitHub Desktop.
Scala 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
| trait Language { | |
| // abstract | |
| var name: String | |
| // concrete | |
| val maxUsage = 10 | |
| // abstract | |
| def lang(): Unit | |
| // concrete | |
| def read() = { | |
| print("Reading") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment