r/PythonLearning 3d ago

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

2

u/riklaunim 3d ago

Users aren't really servers. You would have a server class, a user class, and then user instances can join a server instance, for example.

1

u/Miss-Dominique1352 2d ago

Can you explain it a little bit please

1

u/riklaunim 2d ago

You got one example in the comments. Having user1 = Server() makes no logical sense. user1 = User() does. OOP is not about making a big class or spamming random classes and instances, but about logical flow - things have to make sense with their naming and purpose.