The compiler says that you cannot extend the java.lang.Character class, which is a final class that cannot be subclassed. (Classes in the java.lang implicitly imported into all Java source files.)
Although the NPCharacter class NPCharacter intended to extend the abstract class Character , the compiler cannot distinguish between the two.
You will need to use the fully qualified class name of the Abstract class Character , or if this is not possible (due to the fact that it does not belong to any package), you will have no choice but to rename the Character abstract class.
But even better, rename the abstract Character tag to something that does not contradict the class name in the java.lang , as this can cause confusion for people reading your code.
coobird
source share