Traits in Scala # Scala Tutorial – 13


Video is ready, Click Here to View ×

Similar to interfaces in Java, traits are used to define object types by specifying the signature of the supported methods. Like in Java 8, Scala allows traits to be partially implemented; i.e. it is possible to define default implementations for some methods. In contrast to classes, traits may not have constructor parameters.

5 thoughts on “Traits in Scala # Scala Tutorial – 13

Leave a Reply

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