Question: Create a C++ Program Create a Person class:Add the following variables (set access so that only this class can access them): Name Campus Include the
Create a C++ Program
Create a Person class:Add the following variables (set access so that only this class can access them):
Name
Campus
Include the following functions (do not take any user input in the functions. Pass all needed values in as parameters). Make all functions accessible to classes and programs outside the Person class:
Set (mutator) functions for all variables
A display function to display the user's name and campus.
In the main function:
Create an array of Person objects. Set the size to of the array to 5.
Add three people to the array. Do not gather user input. Instead, hard code the data. Make sure you include the name and campus for each person.
Display all information for each person by calling the display() function.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
