Question: class memberType using c++ STEP 1 Design and implement a class named memberType with the following requirements: An object of memberType holds the following information:
class memberType
using c++
STEP 1 Design and implement a class named memberType with the following requirements: An object of memberType holds the following information: persons first name persons last name member identification number number of books purchased amount of money spent The class memberType has member functions that performs operations on objects of memberType. For the mentioned pieces of data that an object of memberType has (first name, last name, id, books purchased, money spent), there are member functions for setting, retrieving, and printing each of these values:
Set function (or functions) for first name, last name, id, book purchased, and money spent
Get function (or functions) for first name, last name, id, book purchased, and money spent
Print function (or functions) for first name, last name, id, book purchased, and money spent The class memberType has appropriate constructor functions.
STEP 2 Define the functions of the class memberType.
STEP 3 Write a program to test various operations of the class memberType.
Additional Requirements Do not use any global variables. Comment your code. Use separate files for implementing the class (header file), defining the functions of the class (cpp file that maps to the header file), and testing the class (cpp file with a main function).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
