Upcasting and Downcasting In Java with examples
Casting : Casting means assigning the object of one type to reference variable of another type. Upcasting In an upcasting child class object is assigned to the parent class reference…
Casting : Casting means assigning the object of one type to reference variable of another type. Upcasting In an upcasting child class object is assigned to the parent class reference…