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