🔒 Closed DragonFly problem

Status
Not open for further replies.

chaekayeon

Grasshopper
Papaano maiayos po itong problem na ito?

interface HasWings {
public int getNumberOfWings();
}

abstract class Insect implements HasWings {
abstract int getNumberOfLegs();
}

public class Dragonfly extends Insect {
int getNumberOfLegs() {
return 6;
}
}
 
Status
Not open for further replies.

Similar threads

About this Thread

  • 0
    Replies
  • 588
    Views
  • 1
    Participants
Last reply from:
chaekayeon

Online now

Members online
894
Guests online
699
Total visitors
1,593

Forum statistics

Threads
2,276,945
Posts
28,973,258
Members
1,229,658
Latest member
hihiwae
Back
Top