Domanda di colloquio di Tyler Technologies

Q: Describe what polymorphism is.

Risposta di colloquio

Anonimo

29 apr 2016

Polymorphism is the idea that a procedure can manipulate and scrutinize an object while remaining agnostic as to whether the object is actually of the class it is treated as, or a subclass thereof. I.e. if Car extends Vehicle, then you should be able to use vehicle.GetSpeed() whether the vehicle is a Car or just a Vehicle.