Here is my code:
package basic;
public abstract class Entity {}
package characters;
import basic.Entity;
public abstract class Character extends Entity {}
package player;
public class Player extends Character {}
I am getting the
The type
Player
cannot subclass thefinal class Character
.
but I checked a million times and I am yet to use final
all but ONCE in my project. What gives?
You are extending
java.lang.Character
(which does not need an import, as it comes fromjava.lang
).Insert
import characters.Character
into yourPlayer
code.Reference: using package members: