Daily Archives: January 18, 2018

Scala Generics

Scala Generics II: Covariance and Contravariance

In the previous article we looked at Scala Type bounds, today we will continue with Scala generics and talk about Covariance and Contravariance in generics. Liskov substitution principle (the L. of S.O.L.I.D.) specifies that, in a relation of inheritance, a type … Read More

Secured By miniOrange