Reading Time: 4 minutes Variance is the correlation of subtyping relationships of complex types and the subtyping relationships of their component types. Scala supports variance annotations of the type parameters of generic traits and classes.
Reading Time: 5 minutes In this blog, I will put emphasis on the power and awesomeness of the Scala Type System. Also, I will try to reiterate that it is not difficult or complicated as perceived. In layman terms, the Scala Type system helps us keep the code tidy and type safe. So in this blog, I shall take you through the following : Parameterized types In-Variance Co-Variance Contra-Variance