repositories
/
TP_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP2: add class annotations.
[TP_POO.git]
/
TP2
/
Cercle.java
diff --git
a/TP2/Cercle.java
b/TP2/Cercle.java
index 62772da71506b8bba3f1a6423c4f5b405039405c..ba4e103e8ff5670294aea770fccd2ef67343dd8c 100644
(file)
--- 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;
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);
}
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);
+ }
+
}
}