Make a Dog class that extends Pet and give the dog to a second person in main. Have the dog and cat interact as described below. You will probably need to add some new methods. Make sure to pass by reference using & and to use the pointer accessor -Cat will extend claws and swipe at Dog. Dog will bark at cat. Dog’s owner will faint. Dog will ride on Cat. Cat will scream. Cat’s owner will run off.
You'll get a 3.0KB .ZIP file.