public static feetInches operator *(feetInches x, feetInches y) { int feet; int inches; feet = x.getFeet() * y.getFeet(); inches = x.getInches() * y.getInches(); feetInches temp = new feetInches(feet, inches); return temp; }
public roomDimension(int length, int width) { this.length = new feetInches(0, length); this.width = new feetInches(0, width); }
public feetInches(feetInches source) { this.feet = source.getFeet(); this.inches = source.getInches(); simplify(); }