refer to the Worker class below: public class Worker {
private String myName; private double myHourlyWage;
private boolean isUnionMember; //constructors public Worker()
I implementation public Worker (String name, double hourlyWage, boolean union)
{ implementation}
//accessors public String getName () { return myName}
public double getHourlyWage()
{ return myHourlyWage}
public boolean getUnionStatus () { return isUnionMember}
//modifiers //Permanently increase hourly wage by amt public void incrementWage (double amt) {implementation}
//switch value of isUnionMember from true to false and vice versa public void changeUnionStatus() { implementation}



Answer :

Other Questions