WintellectNOW – Using Inheritance in Scala-CONSORTiUM
English | Size: 175.45 MB
Category: Tutorial
Scala follows Java’s single-base-class model of inheritance. Whereas Java has interfaces to allow inheritance of more than one set of methods, Scala has traits. These do the same job but are much more powerful. Learn about traits and inheritance in Scala and you are well on your way to becoming a master of the language.