Question: Class B extends class A . Both classes define a hide ( ) method. Which hide method is used in the following code snippet? A
Class B extends class A Both classes define a hide method. Which hide method is used in the following code snippet?
A x new B;
xhide;
Group of answer choices
The hide method in A will be called
The hide method in B will be called
It is impossible to know which hide method will be called
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
