public class Application { static ImplantationInterface1 ii1 ; static ImplantationInterface2 ii2 ; static UtilisationImplantation ui ; public static void main(String args []) { ii1 = new ImplantationInterface1() ; ii1.v1 = 5 ; ii1.v2 = 15 ; ii2 = new ImplantationInterface2() ; ii2.v1 = 5 ; ii2.v2 = 15 ; ii2.v3 = 25 ; ui = new UtilisationImplantation() ; System.out.println(ui.mediane(ii1)) ; System.out.println(ui.mediane(ii2)) ; } }