Top "Private" questions

Private is a way of encapsulation in object-oriented programming.

Instantiate private inner class with java reflection

Is it possible to instantiate a private inner class from another class using Java reflection. For example if I took …

java class reflection private inner-classes
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
Quick Java question about private static final keywords for fields

I'm declaring a field: private static final String filename = "filename.txt"; First, does the order of private static final matter? …

java static private final
Why do we actually need Private or Protected inheritance in C++?

In C++, I can't think of a case in which I would like to inherit private/protected from a base …

c++ inheritance private protected c++-faq
What's the best way to unit test protected & private methods in Ruby?

What's the best way to unit test protected and private methods in Ruby, using the standard Ruby Test::Unit framework? …

ruby unit-testing private protected
What is the difference between getDir and getFilesDir on Android?

I would like to save a picture in Internal Storage of my app, to make it private. So I did …

android file private
Private key length bytes

So im generating 2048 RSA keypair. But when i look at the private key the lenght is only 1232 bytes. Does this …

cryptography key rsa private
Friend declaration in C++ - difference between public and private

Is there a difference between declaring a friend function/class as private or public? I can't seem to find anything …

c++ private friend public
How to access a private member inside a static function in PHP

I have the following class in PHP class MyClass { // How to declare MyMember here? It needs to be private public …

php class static private member
What is a good example to differentiate between fileprivate and private in Swift3

This article has been helpful in understanding the new access specifiers in Swift 3. It also gives some examples of different …

swift swift3 private access-control access-specifier