I've created 2 files: Sphere.java and CreateSpheres.java files -- in the same directory.
Sphere.java is 'stand-alone' and compiled fine.
CreateSpheres.java references 'Sphere' objects, and does NOT compile. An error message occurs on every line where 'Sphere' is referenced.
For example:
CreateSpheres.java:7: cannot resolve symbol
symbol : class Sphere
location: class CreateSpheres
Sphere ball = new Sphere(4, 0, 0, 0);
^
Why is this happening? Do I need an import statement? Do I need to use 'extends Sphere' in the 2nd program? Or something else?
I'm a REAL beginner, so please go easy on me and use small words.
Thank you!
Susan
[This message has been edited by Susan Delph (edited April 10, 2001).]
[This message has been edited by Susan Delph (edited April 10, 2001).]