Reputation: 53876
I'm passing an object reference to a Util class. I'm attempting to invoke a protected method on the Util class but I getting a compile time error -
The method setPositionChild(Field, int, int) from the type Manager is not visible
To invoke a protected method is it required to be in the implementing class only ? Can I not pass the reference to an external class and invoke the reference from there ?
Upvotes: 4
Views: 11391