Question: Analyze the following code:The method m is not overridden in B . B inherits the method m from A and defines an overloaded method m
Analyze the following code:The method m is not overridden in B B inherits the method m from A and defines an overloaded method m in B The program has a compile error, because b m cannot be invoked since the method m int is hidden in B The program has a runtime error on bi because i is not accessible from bThe program has a compile error, because m is overridden with a different signature in B
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
