What is upcasting and downcasting?

Downcasting refers to the process of casting an object of a base class type to a derived class type.

Upcasting converts an object of a specialized type to a more general type.

No comments:

Post a Comment