Creating an Animal-Dog Hierarchy

# Introduction In this lab, you need to implement a program that uses inheritance to create an Animal class with an eat() method and a Dog class that inherits from Animal and has a dance() method, and then create an object of the Dog class and call the eat() and dance() methods.

|60 : 00

Click the virtual machine below to start practicing