stack247.wordpress.com
Upcasting x Downcasting
Upcasting Is when you cast an object to its base class type. Downcasting Well, it’s the opposite of upcasting, when you cast a reference of a base class to one of its derived classes. You can…