Fix the Compactable implementation in Entiers and Listes classes.
[TP_POO.git] / TP2 / Cercle.java
index 62772da71506b8bba3f1a6423c4f5b405039405c..68e62891de11e4f2e1566a5130ab9c03c9450364 100644 (file)
@@ -14,4 +14,10 @@ class Cercle extends Forme {
         System.out.println(className + " " + super.getpOri().toString() + "->" + pOriTrans.toString() + " " + rayon);
     }
 
+    public void afficher() {
+        String className = this.getClass().getSimpleName();
+        System.out.println("---- " + className + " ----");
+        System.out.println(super.getpOri().toString() + " " + rayon);
+    }
+
 }