# Java: OOP Assignments

Name _______________________________

### Assume

    class A implements IX { ... }
    class B extends A implements IY { ... }

    Object obj = new Object();
    A a = new A();
    B b = new B();
    IX ix = new IX() { ... };
    IY iy = new IY() { ... };

### Questions

Which assignments (to variable on left from variable on top) are legal? Write OK in the space.

= | obj | a | b | ix | iy
--- | --- | --- | --- | --- | ---
obj | OK |  |  |  |
a |  | OK |  |  |
b |  |  | OK |  |
ix |  |  |  | OK |
iy |  |  |  |  | OK