-
-
Save pablovillacanas/546f05d695a609b2703b69c4556f64dd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Comida{ | |
int cantidadPasta; | |
int cantidadSalsaTomate; | |
int cantidadAtun; | |
int cantidadCarne; | |
int cantidadMerluza; | |
int cantidadGuidantes; | |
//Constructores + Getters_Setters | |
double calcularPrecio(){ | |
return 0.89 cantidadPasta + | |
0.40 cantidadSalsaTomate + | |
0.60 cantidadAtun + | |
1.23 cantidadCarne + | |
0.54 cantidadMerluza + | |
0.10 cantidadGuidantes + | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment