Question: Create a superclass named Commission. Commission class has the properties employees first name, last name, social security number, gross sales and commission rate. Declare all

Create a superclass named Commission. Commission class has the properties employees first name, last name, social security number, gross sales and commission rate. Declare all data members as private. Create argument constructor for Commission class. Use get or set method as necessary. Create a method earning() which calculate earning of employee. (earning=gross sales* commission rate). ______________________________________________________________ Create a subclass BaseCommission which inherit properties of Commission class. BaseCommission class has a property basic salary. Create argument constructor for BaseCommission class. Use get or set method as necessary. Create a method countSalary() which calculate salary of employee. (salary=basic salary+earning). _________________________________________________________________ Write a Test class program in which Ask user to enter values of employees first name, last name, social security number, gross sales, commission rate and basic salary. Create object of BaseCommission class and use toString() method to print the employees information as per following: Employee first name: Employee last name: Employee SIN number: Employee Gross sales: Employee Commission rate: Employee basic salary: Employee Earning: Employee Salary:

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!