Where is the problem?
package com.codegym.task.task13.task1314;
import java.awt.*;
/*
A big fox is still a fox
*/
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());
// 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;
}
}
}