The object of this code is to test a person's knowledge of whether they know Object Oriented Programming specifically inheritance.
A
|
|
B
/ \
/ \
C D
- B u = new C();
- D v = (D)u;
- C w = (C)u;
- D x = (D)(new A());
- A x = (A)(new D());
- D y = new D();
- C z = (C)y;