Top "Public-method" questions

A public method is a method declaration that allows access from other classes external to the current class.

Reference to a non-shared member requires an object reference occurs when calling public sub

I have a Public Class "General" in which is a Public Sub "updateDynamics". When I attempt to reference it in …

vb.net public-method object-reference
Should methods in a Java interface be declared with or without a public access modifier?

Should methods in a Java interface be declared with or without the public access modifier? Technically it doesn't matter, of …

java interface coding-style public-method
Private Methods Over Public Methods

I was examining the StringTokenizer.java class and there were a few questions that came to mind. I noticed that …

java encapsulation stringtokenizer private-methods public-method
Disable "not used" warning for public methods of a class

The new intellij upgrade (10.5) now shows a warning that some of the methods defined for a class are not being …

intellij-idea public-method
Why should we declare interface methods as public?

When I implement an interface method, I am forced to make it a public method. We may have cases where …

java interface public-method
What are the differences between "private", "public", and "protected methods"?

I'm learning Ruby, and have come up to a point where I am confused. The book I am using is …

ruby access-specifier public-method
public vs. internal methods on an internal class

internal class Foo { public void Fee() { Debug.WriteLine("Fee"); } internal void Fi() { Debug.WriteLine("Fi"); } } I'm thinking that Fee() and …

c# public-method
"public static" or "static public"?

A minor point about function declaration keywords in PHP: If you've got a class method that's static, should the static …

php oop readability public-method
Access Of Public Method Between Forms

I am trying to get access to Form1’s public method on another form Form2 as below. I have a …

c# .net winforms public-method
public methods in package-private classes

Does it make a difference to mark methods as public in package-private classes? class SomePackagePrivateClass { void foo(); // package private method …

java methods package visibility public-method