- Exercise

Let's solve an exercise in this lesson.

We'll cover the following

Problem Statement

Polymorphism can be simulated in various ways. Implement the polymorphism with if, with switch, and with a dispatch table and compare the three implementations using static and dynamic polymorphism.

Get hands-on with 1000+ tech skills courses.