apl/APL2.1/TP7_Polymorphisme/TP7/Vehicule.java

19 lines
347 B
Java
Raw Permalink Normal View History

2022-01-14 06:54:18 +01:00
public class Ex2
{
public static void main(String[] args)
{
short a = 5;
int b = 150;
long c = 200;
float d = 500.5f;
Moyenne moy = new Moyenne();
moy.add(a);
moy.add(b);
moy.add(c);
moy.add(d);
System.out.println("Moyenne: " + moy.getAverage());
}
}