Please enable JavaScript to use CodeHS

CodeHS Glossary


Polymorphism General

Polymorphism lets code treat different objects through a shared type. For example, calling `speak()` on an `Animal` variable runs the `Dog` version if the object is a `Dog`.