It allows you to validate and know when fields are accessed.
Getters and Setters allow you to validate and normalize input. If this validation isn't needed then consider a public field.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.