What's new

Java DragonFly problem

chaekayeon

Leecher
Joined
Oct 6, 2021
Posts
13
Reaction
1
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;
}
}
 
Top