co robie zle ?
package pl.codegym.task.task13.task1314;
import java.awt.*;
/*
Duży lis to wciąż lis
*/
public class Solution {
public static void main(String[] args) throws Exception {
Fox bigFox = new BigFox();
System.out.println(bigFox.getName());
System.out.println(bigFox.getColor());
}
public interface Animal {
Color getColor();
}
public static abstract class Fox implements Animal {
public String getName() {
return "Fox";
}
}
public static abstract class BigFox extends Fox {
public String Color() {
return Color.GRAY;
}
}
}