Scala – extends vs with
If you have multiple classes or traits to inherit, the first one is always extends, and the following >=0 class/trait to be withs. But remember that you can only inherit <=1 (abstract) class, which means if you need to inherit a parent class (Parent), it should always comes at first of the form … extends … Read more