error: no enclosing instance of type pl.codegym.task.task13.task1325.Solution is in scope
public static class BigFox extends Fox{
^
pls
package pl.codegym.task.task13.task1325;
import java.awt.*;
/*
Kompilowanie programu
*/
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 abstract class Fox implements Animal {
public String getName() {
return "Fox";
}
}
public static class BigFox extends Fox{
@Override
public Color getColor() {
return Color.RED;
}
}
}