Traversierung Binärbaum
This commit is contained in:
16
Klassen/Aktienhandel/OnlineBroker.java
Executable file
16
Klassen/Aktienhandel/OnlineBroker.java
Executable 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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user