SE450: Basics: Test [46/63] Previous pageContentsNext page

final class D {
  A _xa;
  B _xb;

  D (B xb) {
   _xa = new A();
   _xb = xb;
  }
  void f(C xc) { ... }
}

Draw two diagrams showing the relationships between D and A, B and C.

  1. Be as abstract as possible.
  2. Be as concrete as possible.

Previous pageContentsNext page