Purchase Solution

Veterinarian

Not what you're looking for?

Ask Custom Question

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.

Attachments
Purchase this Solution

Solution Summary

Create a class named Veterinarian

Solution Preview

Please see the attached programm for the solution.

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

Purchase this Solution


Free BrainMass Quizzes
Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic Networking Questions

This quiz consists of some basic networking questions.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.