Traits

Download scala eBook

Syntax

  • trait ATrait { ... }
  • class AClass (...) extends ATrait { ... }
  • class AClass extends BClass with ATrait
  • class AClass extends ATrait with BTrait
  • class AClass extends ATrait with BTrait with CTrait
  • class ATrait extends BTrait

Related Examples

Stats

205 Contributors: 7
Monday, March 6, 2017
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook