I recently deleted the privateone specified in the class definition because it was on top, right after the keyword class:
class MyClass
{
private:
int someVariable;
I thought it was superfluous.
The employee disagreed, stating that he had effectively βhiddenβ the nature of the data private.
Most of our legacy codes explicitly specify access specifiers, and they are usually mixed inconsistently with them throughout the definition. Our classes are also very large.
I am trying to make my new classes small enough so that my class definitions look like:
class MyClass
{
protected:
public:
}
, (), private struct/class .
struct/class?