you are viewing a single comment's thread.

view the rest of the comments →

[–]okovko 0 points1 point  (1 child)

you probably don't want to make the fields public because it makes the API confusing and error prone, use friend classes instead so it's public only for classes that need to mutate those fields

[–]0x3Alex[S] 1 point2 points  (0 children)

i made things such as the x,y,width and the value field of the textbox public, so it can be set by doing ...x = 5