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

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!