Create the class Employee that has the following member data: employee id, employee name, gender, date of birth, address, contact number, date hired, employee type, position, and salary rate. Define all the accessors and mutators needed for the member data of this class. Test the class by creating an object in the main function and try changing or displaying the values of its member data through its accessors and mutators.
Improve the Product.cpp in Figure 7.7 such that the main program will create an array of 10 product objects. Ask for the all values of the member data of each of the product object. After all the data entry of the 10 products, the program will display the product details in a table form.
Comments
Leave a comment