Could anyone tell me what is wrong..?
I'm still a beginner, so any comments are welcomed.
codes in Figure.java :
package pbangun;
public abstract class Figure {
int color;
int center_position;
abstract void display ();
}
codes in file Point.java
import pbangun.*;
class display extends Figure {
void display() {
System.out.println ("Show Point");
}
}
class mainPoint {
public static void main (String args[]) {
System.out.println("Point's Main ");
}
}
Error message:
C:\pbangun>javac Point.java
Point.java:20: cannot resolve symbol
symbol : constructor Figure ()
location: class Figure
class display extends Figure {
^
1 error