Top "Access-modifiers" questions

Access modifier is an OOP concept.

What is the difference between Dim, Global, Public, and Private as Modular Field Access Modifiers?

In VB6/VBA, you can declare module-level variables outside of a specific Sub or Function method. I've used Private and …

vba vb6 scope access-modifiers
Difference between Private Sub, Function and Class

What are the differences between the following: Private Sub Private Function Private Class When should each one be used?

vb.net access-modifiers
"Private" (implementation) class in Python

I am coding a small Python module composed of two parts: some functions defining a public interface, an implementation class …

python access-modifiers
Can non-static methods modify static variables

I am wondering how a non static method can modify a static variable. I know that static methods can only …

java methods static instance-variables access-modifiers
Does Swift have access modifiers?

In Objective-C instance data can be public, protected or private. For example: @interface Foo : NSObject { @public int x; @protected: int …

access-modifiers swift
Why does Typescript use the keyword "export" to make classes and interfaces public?

While dabbling with Typescript I realised my classes within modules (used as namespaces) were not available to other classes unless …

typescript module public access-modifiers
Isn't "package private" member access synonymous with the default (no-modifier) access?

I am a little confused over the term "package private" that some of the documentation uses, along with the usage …

java terminology protected access-modifiers package-private
Are there any reasons to use private properties in C#?

I just realized that the C# property construct can also be used with a private access modifier: private string Password { …

c# properties access-modifiers
C++ classes (public, private, and protected)

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

c++ private public protected access-modifiers