Continuing: <code>obj.someBMethod()</code> where someBMethod is only in B
- A
Returns null
- Bcheck_circle
Compile error (reference type is A; method not in A)
- C
Throws exception
- D
Works at runtime
Explanation
Compile-time check uses reference type A; B-only method not visible.