Question: Implement in C sharp, create a derived class Salesman that will implement the method PaySalary . The salary paid to each salesman has two parts:
Implement in C sharp, create a derived class Salesman that will implement the method PaySalary. The salary paid to each salesman has two parts: base salary and bonus. The base salary of each salesman is $30,000. A salesman with sale over $40,000 get a higher bonus (bonus=sale*20%). Otherwise, the bonus will be bonus*10%. In addition, the class Salesman has a field Sale used to calculate the bonus of each employee. It has a constructor having one parameter. When it is called, the field Sale is initialized via this parameter.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
