🔒 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
  • 606
    Views
  • 1
    Participants
Last reply from:
chaekayeon

Trending Topics

Online now

Members online
636
Guests online
1,042
Total visitors
1,678

Forum statistics

Threads
2,287,419
Posts
29,044,583
Members
1,216,522
Latest member
mrshanks
Back
Top