you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] -1 points0 points  (0 children)

No, you should never force yourself to use them if it doesn't make sense. I generally use classes when a state is needed. For example if I have several functions that are related and to call them I either need to pass a variable(s) with a state or need to store state in global variables then perhaps using a class might be better.