Question: Consider the following two classes class A { void printMe() { System.out.println(me()); String me(){ return A; } class B extends A { Soverride String me()
Consider the following two classes class A \{ void printMe() \{ System.out.println(me()); String me()\{ return "A"; \} class B extends A \{ Soverride String me() \{ String result = super.me() + "B"; \} return result; What is the sequence of methods called when printMe() is called on an instance of B? Select one: a. None, because B does not have a printMe method b. B.me A.printMe A.me c. A.printMe > B.me > A.me d. A.printMe A.me
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
