BUT2/DEV/DEV2.1/TP07_Polymorphisme/Q2_Moyenne/Q2.java

12 lines
230 B
Java
Raw Permalink Normal View History

2023-10-23 13:23:36 +02:00
public class Q2{
public static void main(String[] args) {
Moyenne2 test = new Moyenne2();
test.add(10);
test.add(3.333);
test.add(3.333);
test.add(3.333);
test.add(3.333);
System.out.println(test.getAverage());
}
}