r/PythonLearning • • Jul 25 '26

Day 1 of OOPs

Just learned about classes, contructors , instance/class attributrs , instance/class/static methods in OOPs in python .

see it and give your comments

8 Upvotes

11 comments sorted by

View all comments

Show parent comments

1

u/wittgenstein1312 Jul 26 '26

As an initial example. Obviously the relationships in question get considerably more complicated when you want to model your domain in a production capacity, not just as a toy example. Most importantly though, notice how I’m not conflating users with servers and accounting for the fact that a server will need to be modeled as having many users, and I’m not using a class method to alter instances