Пример #1
0
 public double CalcularEtanol(Combustivel combustivel)
 {
     //etanol
     return(combustivel.Etanol(combustivel.CustoEtanol, combustivel.KmEtanol));
 }
Пример #2
0
 public Double CalcularGasolina(Combustivel combustivel)
 {
     //Gasolina
     return(combustivel.Gasolina(combustivel.CustoGasolina, combustivel.KmGasolina));
 }