Inheritance and Traits3:17 with andi mitre
In this video, we’ll define what traits are in Scala and how to use them. We will create our own traits and show how to inherit multiple traits.
Traits -- In Scala, auxiliary constructors refer to secondary or additional constructors which accept different parameters from the primary constructor. They are defined using ‘def this()’ and always call either the primary constructor or another previously defined auxiliary constructor.
You need to sign up for Treehouse in order to download course files.Sign up