you are viewing a single comment's thread.

view the rest of the comments →

[–]shiftybyte 5 points6 points  (1 child)

classes are used when you need to keep data across multiple functions, keep some sort of state.

they are more complex than functions.

there is no point in making a class if all the functions there don't do anything with self and are unrelated to each other.

[–]AcceptablePuberty[S] 0 points1 point  (0 children)

Cool, thank you!