package base; import java.util.*; public class Base { private R3 r3 = new R3(); private R1 r1 = new R1(r3); private R2 r2 = new R2(r3); public void set1(int r1) { this.r1.set1(r1); } public void set2(int r2) { this.r2.set2(r2); } public int getR2() { return r2.getR2(); } public int getR3() { return r3.getR3(); } public int getR1() { return r1.getR1(); } }