In this Assignment, you will design a class member Type.
A. Each object of member Type can hold the name of a person, member ID, number of books bought, and amount spent.
B. Include the member functions to perform various operations on the objects of member Type – for example, modify, set, and show a person's name. Similarly, update, modify, and show the number of books bought and the amount spent.
C. Add appropriate constructors.
D. Write the definitions of the member functions of member Type.
E. Write a program to test various operations of your class member Type.
A. Each object of member Type can hold the name of a person, member ID, number of books bought, and amount spent.
B. Include the member functions to perform various operations on the objects of member Type – for example, modify, set, and show a person's name. Similarly, update, modify, and show the number of books bought and the amount spent.
C. Add appropriate constructors.
D. Write the definitions of the member functions of member Type.
E. Write a program to test various operations of your class member Type.
Comment