ahhhhhhhhhhhh
This commit is contained in:
parent
7836821c51
commit
7663a81750
50 changed files with 860 additions and 341 deletions
16
Code/Steiner/hotelBookKeeping/src/Yen.java
Normal file
16
Code/Steiner/hotelBookKeeping/src/Yen.java
Normal file
|
@ -0,0 +1,16 @@
|
|||
class Yen extends Waehrung {
|
||||
private static double kurs;
|
||||
|
||||
public Yen(double betrag) {
|
||||
super(betrag);
|
||||
}
|
||||
|
||||
public static void setKurs(double kurs) {
|
||||
Yen.kurs = kurs;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double dollarBetrag() {
|
||||
return getBetrag() * kurs;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue