Question: Given classes A, B, and C, where B extends A, and C extends B, and where all classes implement the instance method void doIt(), how
Given classes A, B, and C, where B extends A, and C extends B, and where all classes implement the instance method void doIt(), how can the doIt()
method in A be called from an instance method in C?
Select the one correct answer.
(a) doIt();
(b) super.doIt();
(c) super.super.doIt();
(d) this.super.doIt();
(e) A.this.doIt();
(f) ((A) this).doIt();
(g) It is not possible.
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
g It is not possible to invoke the doIt method in A from an instance ... View full answer
Get step-by-step solutions from verified subject matter experts
