Question: Make an employee class. Some instance methods that the class must include are: A. Change the name B. Get the name. Also, define two classes:

 Make an employee class. Some instance methods that the class must
Make an employee class. Some instance methods that the class must include are: A. Change the name B. Get the name. Also, define two classes: hourly employee and commission employee. The objects of the hourly employee class must implement the operations to change and obtain the hours worked, change and obtain the hourly wage, calculate the wage (no overtime), and print their information. The hourly employee class inherits from the employee class. The objects of the class employee by commission must implement the operations to change and obtain the sales made, change and obtain the commission percentage, calculate the salary and print their information. The class employee on commission inherits from the class employee. All classes must implement their respective constructors with the corresponding parameters. Reminder: the employee class is an abstract class and can be used as a superclass for other classes.
C++

(155 puntos) Haga una clase empleado. Algunos mtodos de instancia que la clase debe incluir son: a. Cambiar el nombre b. Obtener el nombre Adems, defina dos clases: empleado por hora y empleado por comisin. Los objetos de la clase empleado por hora deben implementar las operaciones para cambiar y obtener las horas trabajadas, cambiar y obtener el salario por hora. calcular el sueldo (no hay horas extras) e imprimir su informacin. La clase empleado por hora hereda de la clase empleado. Los objetos de la clase empleado por comisin deben implementar las operaciones para cambiar y obtener las ventas hechas, cambiar y obtener el porciento de comisin, calcular el sueldo e imprimir su informacin. La clase empleado por comision hereda de la clase empleado. Todas las clases deben implementar sus respectivos constructores con los parmetros correspondientes. Recordatorio: la clase empleado es una clase abstracta y puede usarse como superclase de otras clases

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!