/**
*  @version for Part II - question 4,5,6
*/

public class Length
{
            // remind class about atributes being private
     private int feet, inches, sign;  
	  
	  /**
	  *  explicit three value constructor
	  *  @param length in feet 
	  *  @param length in inches
	  *  @param boolean true means sign is positive, false means its negative)
	  */ 
	  public Length (int numFeet, int numInches, boolean booleanSign)
	  {
	      this.feet = numFeet;
			this.inches = numInches;
			if (booleanSign)
			    this.sign = +1;
			else
			    this.sign = -1;
	  }
	  
	  /**
	  *  explicit two value constructor which makes sign positive
     *  @param length in feet 
	  *  @param length in inches
	  */ 
	  public Length (int numFeet, int numInches)
	  {
	        this(numFeet, numInches, true); // object is calling its own constructor
	  }
	  
	  /**
	  *  default constructor sets feet and inches to 0, sign to positive
	  */
	  public Length ()
	  {
          this(0,0); // this is how object calls its own constructor
	  }
	  
	  /**
	  * this method returns nothing but changes the calling objects length
	  * by the Length passed in.
	  * 
	  * @param a Length
	  */
	  public void changeBy (Length aLength)
	  {
	  
	  
	  }
	  
	  /**
	  *  method that returns a boolean value and is passed a Length
	  *  method checks to see whether this length has the same value
	  *  as the Length parameter passe in  
	  *
	  *  @return  true if lengths are the same, false if they are different
	  */
	  public boolean equals(Length eLength)
	  {
	   
	     return true;  // default value for stub only
	  }	
		 
	 /**
	 *  private method converting a Length in feet and inches to inches
	 *
	 *  @return  number of inches in Length (i.e.  1 ft  5 in returns 17)
	 */
	 private int toInches()
	 {
	 
	   return 0;  // default value for stub
	 }
	 
	  /** 
	 * this method returns a String rpresentation of the length
	 * that called it
	 *
	 * @return String value of Length
	 */
	 public String toString()
	 {
	   return " " + this.feet + " feet" + this.inches + " inches ";
	 }

	 
  }
		 