aboutsummaryrefslogtreecommitdiff
path: root/semestre 4/java/tme/tp3/Roue.java
diff options
context:
space:
mode:
Diffstat (limited to 'semestre 4/java/tme/tp3/Roue.java')
-rw-r--r--semestre 4/java/tme/tp3/Roue.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/semestre 4/java/tme/tp3/Roue.java b/semestre 4/java/tme/tp3/Roue.java
new file mode 100644
index 0000000..bcae13e
--- /dev/null
+++ b/semestre 4/java/tme/tp3/Roue.java
@@ -0,0 +1,15 @@
+public class Roue {
+ private int diametre;
+
+ public Roue(int d) {
+ diametre = d;
+ }
+
+ public Roue() {
+ diametre = 60;
+ }
+
+ public String toString() {
+ return String.format("Roue{%d}", diametre);
+ }
+}