Traversierung Binärbaum

This commit is contained in:
2025-01-08 22:22:34 +01:00
parent 14abc4faae
commit ae55752587
22 changed files with 111 additions and 0 deletions

View File

@ -0,0 +1,16 @@
public class OnlineBroker extends Broker {
protected double platformFee;
protected String platformName;
public OnlineBroker(String name, int age, double money, double provision, int clientCount, double platformFee, String platformName) {
super(name, age, money, provision, clientCount);
this.platformFee = platformFee;
this.platformName = platformName;
}
public void gebuehrErheben(Trader trader) {
trader.geldAuszahlen(this.platformFee);
this.money += this.platformFee;
}
public void neueKundenAkquirieren(int amt) {
this.clientCount += amt;
}
}