What's new

Java DragonFly problem

chaekayeon

Journeyman
Joined
Oct 6, 2021
Posts
16
Reaction
1
Points
25
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;
}
}
 

Similar threads

Back
Top