Accessing attributes in C++ through getters-setters
<p>Hi I have background in Java and currently learning C++. In Java it is not advisable to access the instance attributes directly, instance attributes are made private and accessed through getters-setters. Is it also advisable to create something like JavaBean in C++? Or is this not a common thing in the C++ lingo? If not, why isn't it advisable to create getters-setters in C++ to access instance attributes?</p>
