Loading

Exercise Number: 1

Q. Create a class Animal with a method sound(), and a class Dog that inherits from Animal. Call the sound() method using the Dog class object.