Last active
January 31, 2016 11:24
-
-
Save erangaeb/2aebb6bfc2a78b13f124 to your computer and use it in GitHub Desktop.
Traits vs Abstract classes scala
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
| // this won't compile | |
| trait Language(name: String) | |
| // Use abstract class when needs to have constrctor arguments | |
| abstract class Language(name: String) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment