Do the tags:
even make sense?
According to the tag wikis, they're supposed to be used in context of OOP.
Private is a way of encapsulation in object-oriented programming.
public
is an access-specifier in object-oriented languages; it indicates that all objects have access to thepublic
field or method.
protected
is an access specifier in object-oriented languages. When the members of a class areprotected
, there is restricted access to these members for other classes.
I cannot really imagine anyone excelling at questions about private
, public
or protected
methods, fields or classes specifically or looking for information on just those. All three also seem to appear together on some questions:
- In Java, difference between default, public, protected, and private
- What is the difference between public, private, and protected?
There is the exception of questions, in which one of those modifiers behaves in a manner unexpected by a poster. Or questions which concern the consequences of using a specific access modifier.
- How do I test a class that has private methods, fields or inner classes?
- How do you unit test private methods?
These ones also look like they could be tagged with private but they seem to be doing just fine without it:
encapsulation and access-modifiers seem to cover more scenarios and they're more descriptive of the purpose. They also fit a broader range of potential solutions to problems with using whichever specific modifier in various OO languages. If a question concerns a specific modifier, it also has it mentioned in the body and is likely enough to come up in a search anyway.
Perhaps the three tags should be synonymized with access-modifiers or removed altogether? Should I be using them in my questions?
[private*]
reveals a lot more