repositories
/
TP_POO.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
TP2: Finally make all Affichable implemented classes uniform.
[TP_POO.git]
/
TP2
/
Segment.java
diff --git
a/TP2/Segment.java
b/TP2/Segment.java
index 48809c599f7334d49f2cd04c4a761a5e2f2e54ec..2ec075c659db70f7720fe77fa39b60c62f0ef98f 100644
(file)
--- a/
TP2/Segment.java
+++ b/
TP2/Segment.java
@@
-27,6
+27,8
@@
class Segment extends Forme {
}
public void afficher() {
}
public void afficher() {
+ String className = this.getClass().getSimpleName();
+ System.out.println("---- " + className + " ----");
System.out.println(super.getpOri().toString() + " " + pDest.toString());
}
System.out.println(super.getpOri().toString() + " " + pDest.toString());
}