Using a method instead of a simple setter allows you to include validation or other logic when updating a field. For example, an `Inventory` class might have a method to update stock that checks if the new stock level is non-negative before applying the change.
Additional Notes
Why might you use a method instead of a setter to update a field?