You got it. Now occasionally, I've needed to access a protected method. Not sure if this is where you're going but...
If you do, then what I've done (rather that change the visibility...cuz unless you have the source code you can't) is to create a subclass(B) of the class(A) that contains the protected method. Then add a public method to the subclass(B) that calls the protected method defined in class(A). Then you can use subclass(B) instead of class(A) and be able to call the protected class(A) method by calling the the public subclass(B) method.
Scott
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only