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 code skeleton for the Compactable interface.
[TP_POO.git]
/
TP2
/
Cercle.java
diff --git
a/TP2/Cercle.java
b/TP2/Cercle.java
index f595ffd1a9549c93dafa90d520d4bada0ac0bcfa..68e62891de11e4f2e1566a5130ab9c03c9450364 100644
(file)
--- a/
TP2/Cercle.java
+++ b/
TP2/Cercle.java
@@
-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);
}