Overriding Function in Multiple Classes

# Introduction In this lab, you will create classes named `Animal`, `Dog`, and `Cat`, where `Animal` is the base class and `Dog` and `Cat` are derived classes, each having an overridden `display()` function that prints different messages.

|60 : 00

Click the virtual machine below to start practicing