Skip to content
3 marksDifficulty: Medium

A class B extends class A, and both define a method show(). If A a = new B(); a.show(); is executed, which version runs and why?

Original Khojo Papers practice question — not from a past board paper.

Practise this chapter

Answer

Related questions

From the same topic and chapter, at a similar level.

Related questions