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