Top "Private" questions

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

Reasons to use private instead of protected for fields and methods

This is a rather basic OO question, but one that's been bugging me for some time. I tend to avoid …

oop visibility private protected
C# private (hidden) base class

Is it possible to make a C# base class accessible only within the library assembly it's compiled into, while making …

c# inheritance private base-class
how to mock a property with private setter using NSubstitute

I am having a class "Example" with a property "data" which has a private setter and I would like to …

c# private nsubstitute
C++ why use public, private or protected inheritance?

Well there is enough information about this subject. For example this thread was very clear to me: Difference between private, …

c++ inheritance private public protected
C++: overriding public\private inheritance

If B inherits from A using public, can B override one of the functions and force it to be private? …

c++ inheritance private public
How to use Bower with private Bitbucket repository?

I'm working on a project, where I have some public bower components, and I'm writing some of my own. But, …

git bitbucket private bower
C# override public member and make it private

Possible? Can you change the access of anything to anything else?

c# .net overriding private public
Parameter vs. Member variables

I've recently been working with someone else's code and I realized that this individual has a very different philosophy regarding …

oop variables private
C++ Exceptions and Inheritance from std::exception

Given this sample code: #include <iostream> #include <stdexcept> class my_exception_t : std::exception { public: explicit …

c++ exception inheritance private private-inheritance
write private file to internal storage

I trying to write some files on the internal storage. I saw theFileOutputStream fos = openFileOutput(FILENAME, Context.MODE_PRIVATE); on …

android file private data-storage