Fish Touching🐟🎣

OOP

Mar 30, 2023

# OOP

The only way to interact with an object is through its public API; code using the object shouldn’t be able to reach into the object’s internals and change data or behavior directly. This enables the programmer to change and refactor an object’s internals without needing to change the code that uses the object.