Scala Traits and Java Interfaces – Video Tutorial

This video clip explains what happens when we develop a trait (that includes both abstract and concrete methods) in Scala and compile it. The outcome is an interface in Java together with a class. For each one of the concrete methods the traits includes we will find a static method within that class. We can call those static methods from our code in Java. The name of that additional class includes the name of the interface + ‘$class’.

By Micheal