traits
Interface like traits
are fields and behaviors that you add to classes
Better than Java interfaces b/c offers value parameters and methods
Extending Traits
One class can extend several traits using the with
keyword:
-better than abstract classes cuz can extend multiple traits
can't have abstract class constructors, or import in Java as easily
Last updated