Polymorphism in Java
Just revisiting and explaining myself Polymorphism concept here through a blog post. The words Polymorphism means multiple forms. In Java ,Polymorphism means multiple forms of an object. We shall divide this article into 3 sections. 1.Syntax 2.Calling a variable polymorphically. 3.Calling a method polymorphically. 1.SyntaxPermalink Now in polymorphism in Java, the thumb key rule to remember is super = subPermalink Meaning the variable reference (LHS) must always be a super class reference and the object initialization(RHS) must a sub class....