how do I resolve this error?
I get it when I inherit Fox
package com.codegym.task.task13.task1325;
import java.awt.*;
/*
Compiling the program
*/
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();
}
abstract class Fox implements Animal {
public String getName() {
return "Fox";
}
}
public static class BigFox extends Fox{
@Override
public Color getColor() {
return Color.black;
}
}
}