added Aktienhandel

This commit is contained in:
2024-10-18 18:12:21 +02:00
parent 0aff196b75
commit be65e3e445
8 changed files with 184 additions and 0 deletions

15
Aktienhandel/DayTrader.java Executable file
View File

@ -0,0 +1,15 @@
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
}
}