Question d’entretien chez Morgan Stanley

How polymorphism and inheritance work in Java?