Top "Access-modifiers" questions

Access modifier is an OOP concept.

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
Can I override a private method in Java?

I know I can use reflection to invoke a private method, and to get or set the value of a …

java reflection polymorphism access-modifiers
Is there anything like an Internal class in Java?

In C# you can mark a class as internal so that it is only accessible from within the same package. …

java class access-modifiers internal
Protected Classes in .NET

Can a class be protected in.NET? Why is / isn't this possible?

c# .net access-modifiers
Why can't my subclass access a protected variable of its superclass, when it's in a different package?

I have an abstract class, relation in package database.relation and a subclass of it, Join, in package database.operations. …

java packages access-modifiers protected
Why can't I access C# protected members except like this?

This code: abstract class C { protected abstract void F(D d); } class D : C { protected override void F(D d) { } …

c# overriding protected access-modifiers
Why elements defined in a namespace cannot be explicitly declared?

I have the following C# code: namespace ISeeOptic.BL { public abstract class Process { ... protected static void DeleteImages(List<ImagesPath&…

c# access-modifiers
multiple classes in a single file : modifier private not allowed here

I am not able to understand why this code doesn't compile: class A { public static void main(String[] args) { System.…

java access-modifiers
Which access modifiers are implied when not specified?

For all of the different concepts that support access modifiers, such as fields, properties, methods and classes, which access modifiers …

typescript access-modifiers
What does 'fileprivate' keyword means in Swift?

I'm starting in swift and opening a project created using swift2 from xcode 8 beta, the private modifier were changed to …

swift private access-modifiers