forked from denyskon/info-java
16 lines
439 B
Java
Executable File
16 lines
439 B
Java
Executable File
public class DayTrader extends Trader {
|
|
protected int tradesPerDay;
|
|
protected boolean hebelTrade;
|
|
public DayTrader(String name, int age, double money, int tradesPerDay, boolean hebelTrade) {
|
|
super(name, age, money);
|
|
this.tradesPerDay = tradesPerDay;
|
|
this.hebelTrade = hebelTrade;
|
|
}
|
|
public void schnellerTrade(double profit) {
|
|
this.money += profit;
|
|
}
|
|
public void risikoEingrenzen() {
|
|
//do stuff I guess
|
|
}
|
|
}
|