This doubt has been bugging me for quite sometime now. I'll try to present it in the form of following scenario.
Scenario -
Assume I have 2 different projects, Project-1 and Project-2, in the same Workspace in Eclipse-JUNO. Project-1 has an interface I & a class A in the package P, and Project-2 has a class B in the package Q. I want to know if I can have the class B (of Project-2) implement the interface I and extend the class A (both located in the package P) of Project-1. If yes, how? If no, what are the alternative ways?
Looking forward to understanding this scenario.
Thanks in advance!
For extending class A of Project-1,first it should be accessible/visible outside its package(make it public) and second thing your Project-1 should be on the classpath of Project-2