Answers for "why do we need upcasting in java"

0

upcasting and downcasting in java

A process of converting one data type to another is known as Typecasting and Upcasting and Downcasting is the type of object typecasting. In Java, the object can also be typecasted like the datatypes. Parent and Child objects are two types of objects. So, there are two types of typecasting possible for an object, i.e., Parent to Child and Child to Parent or can say Upcasting and Downcasting.
Posted by: Guest on August-24-2021

Code answers related to "why do we need upcasting in java"

Browse Popular Code Answers by Language