Up casting and Down casting | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

Up casting and Down casting

Upcasting, downcasting is also the example of polymorphism? As we use it to change the behavior .. Need some discussion ūüôā

1st Jul 2022, 6:06 AM
Sufian Ahmad
Sufian Ahmad - avatar
1 Réponse
+ 1
Type casting is to change the primitive data type Lower to high data type is Up typecasting and High to Low convert data type is Down Type casting
1st Jul 2022, 7:27 AM
Awadhut Bhagawan Yenkar