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 1200+ tech skills courses.