Encapsulation
Applies to: general, cpp, python
Encapsulation keeps data and the code that controls it together, often hiding internal state behind methods.
class Robot {
private: double x_;
public: double x() const;
};
See also: class, struct-vs-class