You must log in or register to comment.
The neat thing is, you can add stuff like range checks and logging for getters and setters without changing every call. Separation of concerns is also vital in larger projects.
typical OOP progaganda
Every IT profesor, ever
Imagine not using a language with setters and getter built in lol
Wait until you hear about the concept of properties in languages like Javascript, C#, Kotlin and many others.
That’s not a new way to change data, it’s reading it.