forked from SoftEng-HEIGVD/Teaching-HEIGVD-RES-2017-Labo-00
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8 from maxcaduff/fb-Cello-impl
provided Cello class implementation SoftEng-HEIGVD#382
- Loading branch information
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
Lab00App-build/Lab00App-code/src/main/java/ch/heigvd/res/lab00/Cello.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ;} | ||
} |