#scala #traits
A trait encapsulates method and field definitions, which can then be reused by mixing them into classes.
If you want to change selection, open document below and click on "Move attachment"
Scala TraitsScala - Files I/O
Scala Useful ResourcesScala Quick GuideScala Useful Resources
Selected ReadingDeveloper's Best PracticesEffective Resume WritingComputer GlossaryWho is Who
Scala Traits
Advertisements
Previous Page
Next Page
<span>A trait encapsulates method and field definitions, which can then be reused by mixing them into classes. Unlike class inheritance, in which each class must inherit from just one superclass, a class can mix in any number of traits.
Traits are used to define object types by specifying the sig Summary
status | not read | | reprioritisations | |
---|
last reprioritisation on | | | suggested re-reading day | |
---|
started reading on | | | finished reading on | |
---|
Details