Question: Student Number: SET 2. WHAT TO DO TO MAKE IT COMPILE? [6 MARKS] public interface OnoffAble ( void turnon() ; void turnoff( ) ; public
Student Number: SET 2. WHAT TO DO TO MAKE IT COMPILE? [6 MARKS] public interface OnoffAble ( void turnon() ; void turnoff( ) ; public interface Manipulable [REDACTED] OnOf fable ( void turn (int x, int y) , public abstract class Lamp implements Manipulable [ public abstract void install ( ) ; public void replace () | /" Implementation ./ public class Fancylamp extends Lamp { /* What methods must we implement here ./ What methods must Fancy Lamp implement at a minimum so that it compiles? Mark all that apply here and in the answer sheet [4 marks] (A) install ( ) ( B ) turnoff () 18 (C) turn (int x, int y) (D) turnon () (E) replace () In the above code, what can go in the [REDACTED] part? Select one. [2 marks] (A) extends (B) implements 19 (C) either extends or implements (D) something else
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
