In the Java documentaion it states:
@Override
annotation informs the compiler that the element is meant to override an element declared in a superclass.
I have a class that implements an interface and the implemented method statements have the @Override
annotation.
Does this mean (according to the docs) that the interface is a superclass of my class? But how can it be, considering that interfaces only contain 'empty' methods, not methods that actually do stuff?
My code is LibGDX-related:
public class MouseAndKeyboard implements ApplicationListener {
private Texture plane1;
private Sprite mainPlane;
private SpriteBatch mainSpritePacket;
@Override
public void create() {
float w = Gdx.graphics.getWidth();
float h = Gdx.graphics.getHeight();
...