Continuation….

This post is in continuation to the previous post – Co-variance and Contra-variance Arrays in Java are Co-variant. Which basically means if “String” extends “Object” then “String[]” also extends “Object[]”. Do you see ¬†any pitfall’s above?? Lets look at the following example Example – 1…

Co-variance & Contra-variance

I have been working on Scala recently and it has been a pure pleasure. I am in love with the language. And Yes! it indeed is a beast. Generics/Parametrization is something that has always kept me on the hook even after good amount of experience…