Top "Public" questions

`public` is an access-specifier in object-oriented languages; it indicates that all objects have access to the `public` field or method.

Github (SSH) via public WIFI, port 22 blocked

I'm currently on a public WIFI spot and I'm unable to use SSH (they probably blocked that port). However, I …

git ssh github wifi public
private String or public static String?

At my internship one of my colleagues gave me a hint. I want to know if this is good practice. …

java android private public final
C++ classes (public, private, and protected)

How can classes in C++ be declared public, private, or protected?

c++ private public protected access-modifiers
Advantage of set and get methods vs public variable

Possible Duplicate: Why use getters and setters? Is there any advantage to making methods to access private variables in your …

java class methods private public
Public Static variable in excel vba

Is it possible to have a static variable declared in one procedure, and use this variable in several different procedures …

excel vba global-variables public shared
Class vs. Public Class

What is the difference between: namespace Library{ class File{ //code inside it } } and: namespace Library{ public class File{ //code inside …

c# class public
Making classes public to other classes in C++

If I have two classes for example as follows: class A {...} class B {...} If I want to make class A …

c++ public
Why use a public method in an internal class?

There is a lot of code in one of our projects that looks like this: internal static class Extensions { public …

c# scope public internals
What is the c# equivalent of public final static in java

In Java I can write: public final static MyClass foo = new MyClass("foo"); Is there any equivalent in C#?

c# java static final public
Public, Private - Upper Case, Lower Case:

New to GoLang, coming from Delphi, C++ : First time I tried to create my own package in Go, I followed …

go private public case-sensitive access-modifiers