Описание тега public
`public` is an access-specifier in object-oriented languages; it indicates that all objects have access to the `public` field or method.
In object-oriented languages, classes specify how much access other classes can have to their members.
When a member has the public
specifier, other classes have full access to that member.
Other access specifiers are protected
and private
.
You can use this tag for questions about how the public
specifier controls (or fails to control) access to the members of a class, and questions on how it interacts with the other access specifiers.