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