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

1 Expert Approved Answer
Step: 1 Unlock

g It is not possible to invoke the doIt method in A from an instance ... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming 8th Questions!