forked from denyskon/info-java
16 lines
415 B
Java
Executable File
16 lines
415 B
Java
Executable File
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
|
|
}
|
|
}
|