Scala Trait
Reading Time: 2 minutes Introduction: Scala trait is like an interface with partial implementation. Scala trait is a collection of abstract and non-abstract methods. You can create traits that have all abstract methods or some abstract methods and some non-abstract methods. Any variable declare using the val or var keyword in a trait gets implement internally in the class that implements the trait. A variable declared with val or Continue Reading