T
Thomas Snide
Can someone clarify the difference between declaring a method Protected
vs. Private?
I thought that a private method could only be accessed within the
specific defining class. However, it may also be called by subclasses.
So why the need for protected?
Thanks in advance!
vs. Private?
I thought that a private method could only be accessed within the
specific defining class. However, it may also be called by subclasses.
So why the need for protected?
Thanks in advance!