info-java/Aktienhandel/LangfristInvestor.java

16 lines
415 B
Java
Raw Normal View History

2024-10-18 18:12:21 +02:00
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
}
}