A student is a person, and so is an employee. Create the data attributes common to all persons (name, social security number, age, gender, address, and telephone number) and appropriate member function definitions. A student has a GPA, major, and year of graduation. An employee has a department, job title, and year of hire. In addition, there are hourly employees (hourly rate, hours worked, and union dues).

 

Leave a Reply