Question 9
Correct
What should go in [REDACTED 1] and [REDACTED 2] here?
Mark 1.00 out of 1.00
Remove flag
public interface OnOffAble {
void turnon();
void turnoff();
}
public interface Manipulable [REDACTED 1] OnOffable { void turn(int x, int y);
}
public abstract class Lamp [ REDACTED 2 Manipulable {
public abstract void install();
public void replace (){
/ Implementation */
}
}
public class IKEALamp extends Lamp {
/* What methods must we implement here? */
}
a. [REDACTED 1]: Implements, [REDACTED 2]: Implements
b. [REDACTED 1]: Extends, [REDACTED 2]: Extends
c. [REDACTED 1]: Implements, [REDACTED 2]: Extends
d. [REDACTED 1]: Extends, [REDACTED 2]: Implements
Category | exam bundles |
Comments | 0 |
Rating | |
Sales | 0 |