TP2: add class annotations.
[TP_POO.git] / TP2 / Cercle.java
index 62772da71506b8bba3f1a6423c4f5b405039405c..ba4e103e8ff5670294aea770fccd2ef67343dd8c 100644 (file)
@@ -1,4 +1,8 @@
 
+@ClassPreamble (
+    author = "Jérôme Benoit",
+    date = "01/03/2001"
+)
 class Cercle extends Forme {
     private double rayon;
 
@@ -14,4 +18,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);
+    }
+
 }