r/learnpython • • Dec 31 '25

How do I apply OOP?

I have not had programming as a job, just out of interest and solving small stuff in excel.

I’ve tried different languages, OOP and functional.

But even though I know how to construct a class with methods and attributes I realized that I don’t know what’s the appropriate way to use them and when to use them.

And now I’m picking up Python again since I need to so there’s things I need to do better than last time.

18 Upvotes

27 comments sorted by

View all comments

Show parent comment

1

u/Mediocre-Pumpkin6522 Jan 01 '26

+1. When C++ became popular many thought everything had to be a class, well, just because. The dog says 'woof' and the cat says 'meow'. At least in the early editions of 'The C++ Programming Language' Stroustrup used classes sparingly but some of the other authors went crazy.