Hi
Maybe I'm missing something here but I can't seem to put abstract classes anywhere but in the same package as the class that extends it.
For example, I create 2 classes like this:
package abstracttest.testpackage2; public abstract class testAbstractClass { abstract void testMe(); }
package abstracttest.testpackage1; import abstracttest.testpackage2.testAbstractClass; public class MainClass extends testAbstractClass { @Override void testMe() { throw new UnsupportedOperationException("Not supported yet."); } }
Looks perfectly valid to me, however, Netbeans reports this error "method does not override or implement a method from a supertype". Why?
If I move the abstract class into the same folder as the mainClass it works! What's this all about?