Что ему не нравится?
package com.javarush.task.task12.task1218;
/*
Есть, летать и двигаться
*/
public class Solution {
public static void main(String[] args) {
}
public interface CanFly {
public void fly();
}
public interface CanMove {
public void move();
}
public interface CanEat {
public void eat();
}
public class Dog implements CanEat,CanMove{
void eat(){}
void move(){}
}
public class Duck implements CanEat,CanFly,CanMove{
void eat(){}
void fly(){}
void move(){}
}
public class Car implements CanMove{
void move(){}
}
public class Airplane implements CanFly,CanMove{
void fly(){}
void move(){}
}
}