Question: C++ Create a class called Pet (or something similar). Pet should have (variables) a pet type (dog, cat, etc.), a name, sex, a breed, age,
C++
Create a class called Pet (or something similar). Pet should have (variables) a pet type (dog, cat, etc.), a name, sex, a breed, age, and an owner name. You should include get and set functions for each of these variables. Include a default constructor. NOTE: you will not need any other constructors. Save the class definition and any associated functions as a separate header file.
Create a menu driven application to demonstrate your Pet Store. You should have options for displaying all existing pets, adding pets, searching for pets based on some or all of the variables, and exit. Use appropriate functions for each of the menu choices (other than exit) and use input validation.
Your program should save your pets to a file and read them in at the start of program execution.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
