Tag Archives: public accessors

Excessive Encapsulation Syndrome

I have seen this occasionally on other code bases, where an object’s attribute is declared private, and then both a getter and a setter is provided, effectively exposing the attribute as public. For example class Foo { int bar; public: … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment