Domanda di colloquio di Fidelity Investments

What is polymorphism

Risposta di colloquio

Anonimo

2 mag 2013

Polymorphism allows you to treat derived objects as if they were base objects. For example, you create a number of specialized BIRD types: Penguins, Parrots, Gulls. All of these derive from BIRDS. BIRDS has a number of methods that are factored out of the derived classes.

1