TP2: add class annotations.
[TP_POO.git] / TP2 / Cercle.java
index f595ffd1a9549c93dafa90d520d4bada0ac0bcfa..ba4e103e8ff5670294aea770fccd2ef67343dd8c 100644 (file)
@@ -1,4 +1,8 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "01/03/2001"
+)
 class Cercle extends Forme {
     private double rayon;
 
@@ -15,6 +19,8 @@ class Cercle extends Forme {
     }
 
     public void afficher() {
+        String className = this.getClass().getSimpleName();
+        System.out.println("---- " + className + " ----");
         System.out.println(super.getpOri().toString() + " " + rayon);
     }