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 } }