Question: Consider the following interface & class definitions public interface ClassA public void methodA public class ClassB implements ClassA public void methodA) *some code */ public
Consider the following interface & class definitions public interface ClassA public void methodA public class ClassB implements ClassA public void methodA) *some code */ public class ClassC extends ClassB public void methodC ( Classc objt/* .. some code */ Consider the following statements in a client class. classc objc new classc): ClassB objB new classB Which of the following method calls would be permissible? I. obj .methodc (obj B); Il. objB.methodc (objc); Ill. objc.methodA ) OA. l only O B. Il only OC. IlIl only DI and ill only OE. I, II, and
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
