Employee Class


PHOTO EMBED

Mon Dec 14 2020 00:03:50 GMT+0000 (UTC)

Saved by @chasrmartin

  public class Employee {
      private String name;
      public String getName(){return this.name; }
      public void setName(String name){this.name = name;}

      private String address;
      public String getAddress(){return this.address; }
      public void setAddress(String address){this.address = address;}

      private int idNumber;
      public String getIdNumber(){return this.idNumber; }
      public void setIdNumber(int idNumber){this.idNumber = idNumber;}

      private double payRate;
      public String getPayRate(){return this.payRate; }
      public void setPayRate(double payRate){this.payRate = payRate;}

      public Employee(String name, String address, int idNumber, double payRate){
          this.name = name;
          this.address = address;
          this.idNumber = idNumber;
          this.payRate = payRate;
      }
  }

content_copyCOPY