Question d’entretien chez Leidos

Polymorphism

Réponse à la question d'entretien

Utilisateur anonyme

22 mars 2018

The basic description of polymorphism is the ability of an object to take on many forms. Any object that can pass more than one IS-A test is considered to be polymorphic. Say we had a super class called Animal and subclass called Bear that inherits from Animal. As we know a Bear IS-A Animal and in our case above since the Bear Class inherits from the Animal Class the Bear Object IS-A Animal object as well.