Ability of an object to take many forms. Commonly occurs when a parent class reference is used to refer to a child class object
instanceof
is very useful to check if a typecast was successful
Ability of an object to take many forms. Commonly occurs when a parent class reference is used to refer to a child class object
is very useful to check if a typecast was successful