Make a Dog class that extends Pet and give the dog to a second person in main

profileThehonest
 (Not rated)
 (Not rated)
Chat

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.

 

 

    • 7 years ago
    A+ Work
    NOT RATED

    Purchase the answer to view it

    blurred-text
    • attachment
      qair141.zip