Examples of cases where using private variable/methods in oop languages is useful/necessary
41457
Why "private" methods in the object oriented?
67868
What is the use of having destructor as private?
127387
Why to use Polymorphism?
51277
Private Member Access Java
95924
When do we have to use copy constructors?
107035
Java Private Field Visibility
82730
Legitimate uses of Object(o)
46560
Why can I use auto on a private type?
134279
"Overloading" a private method in PHP
1005
How do I test a private function or a class that has private methods, fields or inner classes?
158089
Best way of declaring private variables in cocoa
14816
What is the SObject for a private message?
91335
Making a private method public to unit test it...good idea?
57783
What are the use cases for different scoping constructs?
19638
What is the purpose of the var keyword and when should I use it (or omit it)?
66370
Java - access private instance variables
150519
When should you use a local class in Java?