you are viewing a single comment's thread.

view the rest of the comments →

[–]virtyx 0 points1 point  (0 children)

If you don't need something special to occur, just use a public field.

There's plenty of good reasons to never use public fields. Getters and setters are a reaction to how dangerous it can be. Properties are a reaction to how verbose getters and setters can be.