query: When I have a public class, what is the access modifier for methods?
positive_passages.docid: 1279
positive_passages.text: What is the difference between public, protected, package-private and private in Java?
negative_passages.docid: 11153
negative_passages.text: Expose a private Objective-C method or property to subclasses
negative_passages.docid: 68506
negative_passages.text: How does one access a control from a static method?
negative_passages.docid: 34075
negative_passages.text: In C#, what is the difference between public, private, protected, and having no access modifier?
negative_passages.docid: 94851
negative_passages.text: Adding a set accessor to a property in a class that derives from an abstract class with only a get accessor
negative_passages.docid: 12410
negative_passages.text: PHP protected classes and properties, protected from whom?
negative_passages.docid: 93718
negative_passages.text: Detect access modifier type on a property using Reflection
negative_passages.docid: 113240
negative_passages.text: What's the real reason for preventing protected member access through a base/sibling class?
negative_passages.docid: 73839
negative_passages.text: How to access an object from another class?
negative_passages.docid: 111570
negative_passages.text: What is the difference between class and instance methods?
negative_passages.docid: 34930
negative_passages.text: C# "internal" access modifier when doing unit testing
negative_passages.docid: 39543
negative_passages.text: Is it legal/well-defined C++ to call a non-static method that doesn't access members through a null pointer?
negative_passages.docid: 2014
negative_passages.text: new modifier in C#
negative_passages.docid: 25091
negative_passages.text: how to restrict protected method access to only subclasses
negative_passages.docid: 59163
negative_passages.text: How can a derived class invoke private method of base class?
negative_passages.docid: 22883
negative_passages.text: Why does the "protected" modifier in Java allow access to other classes in same package?
negative_passages.docid: 63077
negative_passages.text: Why can I access my private variables of the "other" object directly, in my equals(Object o) method