Professional Documents
Culture Documents
1) Use the check mark (√) to answer the following questions with either True or
False (all questions are related to the Java programming language):
public class Q3 {
staff[0]=m1;
staff[1]=m2;
staff[2]=s1;
staff[3]=s2;
public SalesPersonnel(String name, String ID, double salary, String salesArea, double
carAllowance) {
super(name,ID,salary);
this.salesArea=salesArea;
this.carAllowance=carAllowance;
}
public void setSalesArea(String salesArea) {this.salesArea=salesArea;}
public String getSalesArea() {return salesArea;}
Output: