Encapsulation
Keeping an object's fields private and offering safe public methods instead. `Product` hides `stock`, so it only changes through `sell` and `restock`.
Keeping an object's fields private and offering safe public methods instead. `Product` hides `stock`, so it only changes through `sell` and `restock`.