4 ms·
precisely! The default private is because of encapsulation! By default, every thing is private and you only provide access to specific things.
by xerophtye 13y ago
precisely! The default private is because of encapsulation! By default, every thing is private and you only provide access to specific things.
- ygra 13y agoAnd yet, every class starts with public:, listing the public members. And in many cases the number of private things in the class is 1, for historical reasons due to how C++ (and C) manages "modules".