title: How to define the getPrice method in this subclass?
body: <p>I am trying to determine how I should define the getPrice method. The shirts can range from Small to XXXL and the price varies. The price is determined by the size: $22.99 for XXL or XXXL, and $19.99 for all other sizes.</p>
  
  <p>There are two other classes that I have complied. But the method I need help with only goes with this code.</p>
  
  <pre><code>public class TeeShirt{
      private int orderNumber;
      private String size;
      private String color;
      private double price;
      public void setOrderNumber(int num){
          orderNumber = num;
      }
      public void setSize(String sz){
          size = sz;
      }
      public void setColor(String color){
          this.color = color;
      }
      public int getOrderNumber(){
          return orderNumber;
      }
      public String getSize(){
          return size;
      }
      public String getColor(){
          return color;
      }
      public double getPrice(){
          return price;
      }
  }//end
  </code></pre>