Function contains a veterinarian object


Discuss the below:

Q: 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.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Function contains a veterinarian object
Reference No:- TGS01937913

Now Priced at $25 (50% Discount)

Recommended (91%)

Rated (4.3/5)