TP2: Finally make all Affichable implemented classes uniform.
[TP_POO.git] / TP2 / Cercle.java
index f595ffd1a9549c93dafa90d520d4bada0ac0bcfa..68e62891de11e4f2e1566a5130ab9c03c9450364 100644 (file)
@@ -15,6 +15,8 @@ class Cercle extends Forme {
     }
 
     public void afficher() {
+        String className = this.getClass().getSimpleName();
+        System.out.println("---- " + className + " ----");
         System.out.println(super.getpOri().toString() + " " + rayon);
     }