Question: please use simple codes console c# without array and use the inhert Create a class called Plumber that inherits from the CommissionEmployee class in Figure
please use simple codes console c# without array and use the inhert Create a class called Plumber that inherits from the CommissionEmployee class in Figure 11.10 In your Plumber class, Earnings() should calculate the fee earned for a plumbing job. Gross sales represents the amount charged to a customer and commission rate represents the % that a particular plumber earns. Earnings is the amount charged * commission rate. Your class should contain a constructor that inherits from the CommissionEmployee class and initializes the instance variables. The Plumber class should add an instance variable for the name of the customer where the plumbing service occurred. Create a property for it also. Create a second class that prompts the user for the information for two plumbers, creates the 2 plumber objects , then displays each plumber.



l Fig. 11.10: BasePlusCommissionEmployee.cs 2 BasePlusCommissionEmployee inherits from CommissionEmployee and has 3 access to Commission Employee's protected members 4 using System 6 public class BasePlusCommissionEmployee CommissionEmployee 8 private decimal basesal ary; base salary per week 10 six-parameter derived-class constructor with call to base class CommissionEmployee constructor II 12 public Base Plus CommissionEmployee( string first string last string ssn, decimal sales decimal rate decimal salary 13 base first, last ssn, sales rate 14 15 Base Salary salary: validate base salary via property 16 17 end six-parameter BasePlusCommissionEmployee constructor 18 Fig. I 1.10 l Base Plus CommissionEmployee inherits from CommissionEmployee and has access to Commission Employee's protected members. (Part I of 3.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
