Upcasting — Using a Superclass Reference for a Subclass Object
Consider a scenario where we create a class named User and then create a subclass that extends User...
Tags: oop, upcasting, inheritance, java