Consider the following class definitions:
class Employee{ private
int empNum; protected
double empSal;
public int EmpNum{
get {return empNum;}
set {empNum = value;}
}
public double EmpSal { get
{return empSal;} set {double
MININUM = 15000; if
(value
empSal = MININUM; else
empSal = value;}
}
public string GetGeeting(){
string greeting = “Hello, I am employee #” + EmpNum;
return greeting;
}
} class CommissionEmployee :
Employee{ private double
commissionRate; public double
CommissionRate{ get { return
commissionRate;} set {
commissionRate = value;
empSal = 0;}
}
}
Suppose the following statement is used in a program (client code):
CommissionEmployee salesperson = new CommissionEmployee();
Determine if following statements are valid or invalid. Clearly mark YES or NO. (10 @ 2 each) salesperson = 0.07; salesperson.EmpNum = 345; salesperson.EmpNum; EmpSal = 20000; salesperson.CommissionRate.ToString(“P”);