Java OCA OCP Practice Question 2750

Question

Which set of statements result in ClassB and ClassC being derived from ClassA?

  • a.class ClassB extends ClassA {}
  • b.class ClassB extends ClassC {}
  • c.class ClassA extends ClassB {}
  • d.class ClassC extends ClassB {}
  • e.No combination will work


a and d

Note

This results in ClassC being the "grandchild" of ClassA.




PreviousNext

Related