Vote Details for "ProtectedMembers" by heino

» Details
» Comment
Underscore prefixing should still be allowed when it serve an actual purpose (e.g. ‘hiding’ methods that have to be accessible due to internal complexity), but it should not be required common practice since protected methods (and variables) should be named as if they were public, which they might become later on (unless they are final).

Renaming of protected methods (and variables) prefixed with an underscore should be considered a BC issue (they are as much part of the API as the public stuff)! As should (perhaps) renaming of private variables due to possible implementations of __sleep() in inheriting classes...