Inheritance becomes useful when subclasses have additional functionality, like their own methods.
Only dogs can bark. Add a bark() method to the Dog class and call it.
Start by adding bark() in the Dog class. Then, use dog to call the method bark().