Question: Java please. RealEstateAgent Class Implement a class called RealEstateAgent that represents a real-estate agent working at a real estate agency. Each RealEstateAngent object should keep
Java please.


RealEstateAgent Class Implement a class called RealEstateAgent that represents a real-estate agent working at a real estate agency. Each RealEstateAngent object should keep track of its own name, employee number, rate of commission, and total commission earned. As a result, the RealEstateAngent class defines four private instance fields or variables. The instance variable or field emplovee Number is of type String, while the instance variables or fields commissionRate, and totalCommissionEarned are of type double. The remaining instance variable or field name is of type String The instance field or variable commissionRate is the percentage of a sale that is paid to the sales person. For example, if the commissionRate is set to 0.15 (ie., 15 percent), then when the real estate agent sells a home worth $235,000, 15 percent of that amount (commissionRate 235000) is the real estate agent's commission. The instance field or variable totalCommissionEarned is the sum of all commissions earned by the real estate agent. Each time the real estate agent earns some commission by selling a home, it
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
