17
(Choose 1 answer)
A. Ladder Lift
C. Compilation fails
D. Ladder
E. Lift
Ladder
Given the following Java code:
class Ladder{
private final void step() { System.out.println("Ladder"); }
} public class Lift extends Ladder{
public final void step() {
public static void main(String[] args){
new Lift().step();
}
System.out.println("Lift"); }
B. Lift
What is the result?