Solution: Polymorphism

Get a detailed explanation of the solution to the polymorphism exercise with if, switch, and hash tables.

Solution using if

Here is the solution to the challenge using if.

Get hands-on with 1400+ tech skills courses.