Traversierung Binärbaum
This commit is contained in:
15
Klassen/Aktienhandel/LangfristInvestor.java
Executable file
15
Klassen/Aktienhandel/LangfristInvestor.java
Executable file
@ -0,0 +1,15 @@
|
||||
public class LangfristInvestor extends Trader {
|
||||
protected double dividends;
|
||||
protected double investDuration;
|
||||
public LangfristInvestor(String name, int age, double money, double dividends) {
|
||||
super(name, age, money);
|
||||
this.dividends = dividends;
|
||||
}
|
||||
public void dividendeErhalten(double amt) {
|
||||
this.dividends += amt;
|
||||
this.money += amt;
|
||||
}
|
||||
public void portfolioUmschichten() {
|
||||
//stuff
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user