From 4d43b0418a280683643a57f8ae9e97184c674c48 Mon Sep 17 00:00:00 2001 From: Max Caduff Date: Wed, 8 Mar 2017 20:19:36 +0100 Subject: [PATCH] added implementation of Cello class --- .../main/java/ch/heigvd/res/lab00/Cello.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Lab00App-build/Lab00App-code/src/main/java/ch/heigvd/res/lab00/Cello.java diff --git a/Lab00App-build/Lab00App-code/src/main/java/ch/heigvd/res/lab00/Cello.java b/Lab00App-build/Lab00App-code/src/main/java/ch/heigvd/res/lab00/Cello.java new file mode 100644 index 00000000..4f5e0be1 --- /dev/null +++ b/Lab00App-build/Lab00App-code/src/main/java/ch/heigvd/res/lab00/Cello.java @@ -0,0 +1,19 @@ +package ch.heigvd.res.lab00; + + +public class Cello implements IInstrument { + + private String sound ; + private String color ; + private int volume ; + + public Cello () { + this.sound = "boum boum" ; + this.color = "wooden" ; + this.volume = 40 ; + } + + public String play () {return sound ;} + public String getColor () {return color ;} + public int getSoundVolume() {return volume ;} +} \ No newline at end of file