lab7 - classe et tableaux

This commit is contained in:
2021-11-30 07:49:13 +01:00
parent 80c743cb15
commit a7eda55e9b
5 changed files with 238 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
package lab7_Classe_et_tableaux;
/**
* @author Rémi Heredero
* @Klagarge
*/
public class Consommation {
double urban;
double highway;
double combined;
Consommation(){};
/**
* Consommation mix
* @param combined valeur en l/100km pen régime combiné
*/
Consommation(double combined){
this.combined = combined;
}
/**
* Tous les types de consommation d'une voiture
* @param urban valeur en l/100km pen régime urbain
* @param highway valeur en l/100km pen régime autoroutier
* @param combined valeur en l/100km pen régime combiné
*/
Consommation(double urban, double highway, double combined){
this.urban = urban;
this.highway = highway;
this.combined = combined;
}
}