Example #1
0
 public double minus(Ounces ounces, double amount)
 {
     ounces.Amount = ounces.Amount - amount;
     return(ounces.Amount);
 }
Example #2
0
 public double convertToGram(Ounces O)
 {
     return(O.Amount * 28.3495231);
 }
Example #3
0
 //Create a superClass for the following methods
 public double plus(Ounces ounces, double amount)
 {
     ounces.Amount = ounces.Amount + amount;
     return(ounces.Amount);
 }