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

Please Post Your Comments & Reviews

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.