Originally posted by Edwin Dalorzo:
Case II is failing because you declared incorrectly the call to the method. Your variables is fb, but you're calling the method f.func().
Fix this and it will work.
Sorry about that silly typo. It still does not work when chaning it to the intended 'fb'.
When reading the jls section you suggested (6.6.2) I get even more confused, as it says; "A protected member [..] of an object may be accessed from outside the package in which it is declared only by code that is responsible for the implementation of that object."
Is the main method in the example I gave earlier responsible for the implementation? I don't think so..
[ April 15, 2006: Message edited by: Bud Fox ]
[ April 15, 2006: Message edited by: Bud Fox ]