예제 #1
0
 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;
 }
예제 #2
0
 public roomDimension(int length, int width)
 {
     this.length = new feetInches(0, length);
     this.width = new feetInches(0, width);
 }
예제 #3
0
 public feetInches(feetInches source)
 {
     this.feet = source.getFeet();
     this.inches = source.getInches();
     simplify();
 }