Skip to content

Tag Archives: scala-traits

Traits are similar to Java’s interfaces. Classes and objects can extend traits, but traits cannot be instantiated and hence have no parameters. It also supports… Read More
Equals is a trait, which is a linking that accommodates functionalities of equality. It extends the class Any. The Linear Supertype here is Any and… Read More
Product3 is a trait in Scala, which is a Cartesian product of three elements. The Linear Supertypes here are Product, Equals, and Any and the… Read More
Product2 is a trait in Scala, which is a Cartesian product of two elements. In build-in classes it can be considered as tuple of two… Read More
Sealed provides exhaustive checking for our application. Exhaustive checking allows to check that all members of a sealed trait must be declared in the same… Read More
A self type annotation of a trait is the assumed type of this, within a trait, the receiver to be used. Any concrete class that… Read More
We can extend several number of scala traits with a class or an abstract class that is known to be trait Mixins. It is worth… Read More
App is a trait which is utilized to rapidly change objects into feasible programs, which is carried out by applying DelayedInit function and the objects… Read More
Prerequisite :- Scala Trait Traversable | Set-1 Scala Trait Traversable | Set-2 Scala Trait Traversable | Set-3 It is recommended to view Set-1, Set2 and… Read More
Prerequisite : Scala Trait Traversable | Set-1 Scala Trait Traversable | Set-2 It is recommended to see (Set-1, Set-2) before this Set. The operations are… Read More
prerequisite- Scala Trait Traversable | Set-1 In the previous Set we have seen some of the operations performed by the Class Taversable. Now, in this… Read More