#linerization

Traits – The beauty of Scala

Reading Time: 4 minutes In this blog we will discuss about a Trait and how Traits can help you to beautify your code by Multiple Inheritance. Traits Traits are a fundamental unit of code reuse in Scala. Trait encapsulates method and field definitions, which can be reused by mixing into classes. Two most important concept about Traits are :- Widening from thin interface to rich interface Defining stackable modifications. Continue Reading