X-Git-Url: https://git.piment-noir.org/?p=TP_POO.git;a=blobdiff_plain;f=TP2%2FCercle.java;h=ba4e103e8ff5670294aea770fccd2ef67343dd8c;hp=f595ffd1a9549c93dafa90d520d4bada0ac0bcfa;hb=78c725c5e287068ee24d4abb950de2ab9520d76a;hpb=54d3f5b36181762091ed310b362ec21356284e60 diff --git a/TP2/Cercle.java b/TP2/Cercle.java index f595ffd..ba4e103 100644 --- a/TP2/Cercle.java +++ b/TP2/Cercle.java @@ -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); }