class App {
public static void main(String[] args) throws Exception {
Params params = new Params();
params.MACDFast = 12;
params.MACDSlow = 16;
params.MACDMA = 9;
DSO dso = new DSO(params);
}
}
class TSParams {
public int MACDFast;
}
class Params extends TSParams {
public int MACDSlow, MACDMA;
}
class TS {
public TSParams params;
public TS(TSParams params) {
this.params = params;
}
public void out() {
System.out.println(this.params.MACDFast);
}
}
class DSO extends TS {
public Params params;
public DSO(Params params) {
super(params);
this.params = params;
this.out();
}
}