Modify the given codes to remove the compilation errors.
1. public interface Carnivore {
int pieces = 10;
public static void eatGrass();
public int chew() {
return 13;
}
2. Interface HasWings {
public int getNumberOfWings();
abstract class Insect implements HasWings {
abstract int getNumberOfLegs();
public class Dragonfly extends Insect {
int getNumberOfLegs() {
return 6;
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here