Which, inserted at line 8, correctly implements the interface?

Given:
1. interface Flyer {
2. void takeOff();
3. boolean land();
4. }
5. class Airplane implements Flyer {
6. public void takeOff() { /* some code */ }
7. // insert code here
8. return true;

9. }
10. }
Which, inserted at line 8, correctly implements the interface?

Given:
1. interface Flyer {
2. void takeOff();
3. boolean land();
4. }
5. class Airplane implements Flyer {
6. public void takeOff() { /* some code */ }
7. // insert code here
8. return true;

9. }
10. }
Which, inserted at line 8, correctly implements the interface?

A.
boolean land(int i) {

B.
public void land() {

C.
protected boolean land() {

D.
public boolean land() {

E.
boolean land() {



Leave a Reply 0

Your email address will not be published. Required fields are marked *