Explore BrainMass

Explore BrainMass

    Veterinarian

    Not what you're looking for? Search our solutions OR ask your own Custom question.

    This content was COPIED from BrainMass.com - View the original, and get the already-completed solution here!

    1. Create a class named Veterinarian. Include the doctor's name, address, and phone number. Create a class named Pet with the Pet's name, owner's name, age of Pet, breed of Pet, and veterinarian's name. Both classes contains set and display functions. Create a Pet class member function that displays the Pet's name, owner's name, and Veterinarian's name when the doctor's names within the Pet and Veterinarian's class are the same. The Veterinarian class should bestow friendship on this function. Write a main() function that contains a Veterinarian object and an array of 10 Pets, some of which use the Veterinarian object. Use the Pet class member function to display data about every Pet that is seen by the Veterinarian.

    © BrainMass Inc. brainmass.com March 4, 2021, 6:21 pm ad1c9bdddf
    https://brainmass.com/computer-science/cpp/veterinarian-41756

    Attachments

    Solution Preview

    Please see the attached programm for the solution.

    I compile and run it on Linux RH 7.3 using g++. ...

    Solution Summary

    Create a class named Veterinarian

    $2.49

    ADVERTISEMENT