Hey guys,
I don't know what I'm doing wrong here. Am I missing something?
package com.codegym.task.task12.task1218;
/*
Eat, fly, and move
*/
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 CanMove, CanEat {
public void move();
public void eat();
}
public class Duck implements CanMove, CanFly, CanEat {
public void move();
public void fly();
public void eat();
}
public class Car implements CanMove{
public void move();
}
public class Airplane implements CanMove, CanFly {
public void move();
public void fly();
}
}