You can, but is a better practice to use getters and setters. One of the most commont things I have to fix in legacy code are issues related with property mutations like that.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You can, but is a better practice to use getters and setters. One of the most commont things I have to fix in legacy code are issues related with property mutations like that.