Hi ranchers,
Pavan Chillara posted November 06, 2006 05:54 AM
(...)All these classes are in the same package
(...)When i am trying to call method X in the main() method of C by creating an instance of A,It is showing an error to change the access specifier to protected .
This cannot be. If they are in the same pack, the method must be visible.
Here's your situation as I understood:
I'm guessing, but did you mean "When i am trying to
override method X" ?