title: How to reset the getters and setters of a constructor
body: <p>in my recent uni work ive been given a task which i believe is to reassign values that have been set by getters and setters. The exact question is 
  " Edit the product’s main information that shares among all class such as ID,
  Description, etc"</p>
  
  <p>My attempt at this question is as followed.  </p>
  
  <pre><code> public void editProductInformation() { //Standard level task 2 method 3
  
          this.ID = 456890;
          this.description = "Eggs";
          this.recommendedUnitPrice = 10;
          this.Unit = 6;
          this.weight = 750;              
      }
  
  }
  </code></pre>
  
  <p>this is also the code for the rest of the class</p>
  
  <pre><code>public class Product {
  
      Scanner input = new Scanner(System.in);
  
      protected int ID;
      protected String description;
      protected double recommendedUnitPrice;
      protected double actualPrice;
      protected int Unit = 1;
      protected double weight;
      protected LocalDate expiaryDate;
      protected LocalDate expireDate;
  
      public Product(int ID, String description, double recommendedUnitPrice, int unit, double weight, LocalDate expiarayDate) {
          this.ID = ID;
          this.description = description;
          this.recommendedUnitPrice = recommendedUnitPrice;
          this.Unit = unit;
          this.weight = weight;
          this.expiaryDate = expiarayDate;
  
      }
  
      public int getID() {
          return this.ID;
      }
  
      public void setID(int ID) {
          this.ID = ID;
      }
  
      public String getDescription() {
          return this.description;
      }
  
      public void setDescripption(String description) {
          this.description = description;
      }
  
      public double getRecommendedUnitPrice() {
          return this.recommendedUnitPrice;
      }
  
      public void setRecommendedUnitPrice(double recommendedUnitPrice) {
          this.recommendedUnitPrice = recommendedUnitPrice;
      }
  
      public int getUnit() {
          return this.Unit;
      }
  
      public void setUnit(int unit) {
          this.Unit = unit;
      }
  
      public double getWeight() {
          return this.weight;
      }
  
      public void setWeight(double Weight) {
          this.weight = Weight;
      }
  
      public LocalDate getExpiaryDate() {
          return expiaryDate;
      }
  
      public void setExpiaryDate(LocalDate expiaryDate) {
          this.expiaryDate = expiaryDate;
      }
  
      public void setPrice() {
          System.out.println("Enter the price: ");
          this.actualPrice = input.nextDouble();
      }
  
      public void setExpireDate() {
  
          System.out.println("Enter the given date: ");
          int day = input.nextInt();
          int month = input.nextInt();
          int year = input.nextInt();
          LocalDate date = LocalDate.of(day, month, year);
          this.expireDate = date;
      }
  
      public void comparePrice() { // Standard level task 2 method 1
  
          if (recommendedUnitPrice == actualPrice) {
              System.out.println("Price is equal");
          } else if (recommendedUnitPrice &lt; actualPrice) {
              System.out.println("Price is less");
          } else if (recommendedUnitPrice &gt; actualPrice) {
              System.out.println("Price is more");
          }
  
      }
  
      public void verifyExpireProduct() { //Standard level task 2 method 2
  
          if(expireDate == expiaryDate) {
              System.out.println("Product is expired");
          }
          else System.out.println("Product is not expired");
      }
  </code></pre>
  
  <p>I understand this question might not be explained well enough so i understand if people wish to downvote it. Any insight or help is much appreciated!</p>