If a program needs to perform a subclass-specific operation on a subclass object referenced by a superclass variable, the program must first cast the superclass reference to a subclass reference through a technique known as downcasting.

If a program needs to perform a subclass-specific operation on a subclass object referenced by a superclass variable,  the program must first cast the superclass reference to a subclass reference through a technique known as downcasting. - If a program needs to perform a subclass-specific operation on a subclass object referenced by a superclass variable,  the program must first cast the superclass reference to a subclass reference through a technique known as downcasting.  Exasperated Fellow

102 shares

Like us for More!

Laugh more daily

Like us on Facebook?