Here is my code:
package Main;
import java.awt.*;
import java.awt.Event;
import javax.swing.*;
public class Gamestart {
public static void main(String[] args) {
Image i = new Image();
}
}
It gives me an error. I know that this is supposed to happen when it's an abstract class, but it's not abstract,and the superclass is just java.lang.Object
. Does anyone know why this is happening?
EDIT: Okay, i learned that java.awt.image is abstract, but still, how come it still gives me an error?