|
-
Feb 7th, 2001, 05:13 PM
#1
Thread Starter
Addicted Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|