Question: using c + + . A gym wants to keep track of their members and their membership status. Create a class called Gym that has
using cA gym wants to keep track of their members and their membership status. Create a class called Gym that has separate member data for the member's name, membership status active or inactive and the date the membership started. Implement the following task:
A constructor that initializes the data members to safe empty state.
A parameterized constructor that initializes the data members to fixed values.
A member function to add a member to the gym.
A member function to display the entire list of members.
A member function to search for a member and return their membership status.
There should be copy constructor that copies an object which stores the result of addition to another one.
Note: Definition of the member function should be outside of the class
Note: You must add required member functions or data membersvariables in your program to complete its execution.c
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
