Theo như bạn nói thì câu này có thể áp dụng khái niệm composition trong java, cụ thể được giải quyết như sau: 
1 .Đầu tiên mình tạo một interface có tên là Interface , trong interface này có 1 abstract method tên là show()
public interface Interface {
public void show();
}
2 . Tạo 2 class B và C implement interface ở trên và hiện thực hóa method show() của riêng nó 
public class B implements Interface {
@Override
public void show() {
System.out.println("B");
}
}
public class C implements Interface {
@Override
public void show() {
System.out.println("C");
}
}
3 . Tạo class A cũng implement interface, nhưng trong class A sẽ có 2 instance variable của interface Interface, mình đặt tên là b và c. Và 2 variable này sẽ được khởi tạo trong contructor của class A 
public class A implements Interface {
private Interface b, c;
public A() {
b = new B();
c = new C();
}
@Override
public void show() {
System.out.println(“A”);
b.show();
c.show();
}
}
Đến đây, nếu bạn muốn có thêm method get, set thì tùy. Trong ví dụ này mình không cần, nếu thêm vào thì get, set cụ thể như sau:
public Interface getB() {
return b;
}
public void setB(Interface b) {
this.b = b;
}
public Interface getC() {
return c;
}
public void setC(Interface c) {
this.c = c;
}
4 . OK. Việc cuối cùng là tạo hàm main
và gọi method của class A
public class Main {
public static void main(String[] args) {
A a = new A();
a.show();
}
}
Kết quả sẽ in ra là:
A
B
C
