lenin
Feb 7th, 2001, 04:13 PM
Hi,
a simple question. If I have two classes, one of which inherits functionality from the other, is there a particular compiling method. I presumed that I should compile the superclass first then the subclass, but the subclass doesn't find the superclass. Do I have to import it in some way? I'm new to this.
D:\jdk1.2.1\bin>javac ..\..\java\Point.java
D:\jdk1.2.1\bin>javac ..\..\java\Circle.java
..\..\java\Circle.java:4: Superclass Point of class Circl
e not found.
public class Circle extends Point { // inherits from Point
^
1 error
D:\jdk1.2.1\bin>
THANKS
Lenin
a simple question. If I have two classes, one of which inherits functionality from the other, is there a particular compiling method. I presumed that I should compile the superclass first then the subclass, but the subclass doesn't find the superclass. Do I have to import it in some way? I'm new to this.
D:\jdk1.2.1\bin>javac ..\..\java\Point.java
D:\jdk1.2.1\bin>javac ..\..\java\Circle.java
..\..\java\Circle.java:4: Superclass Point of class Circl
e not found.
public class Circle extends Point { // inherits from Point
^
1 error
D:\jdk1.2.1\bin>
THANKS
Lenin