Answer the question
In order to leave comments, you need to log in
Is OOP necessary in python?
Subject
If yes, in what cases?
I mean creating my own classes
Answer the question
In order to leave comments, you need to log in
In all cases where this will make the code more readable and concise.
OOP is for people to make it easier to write more complex programs. OOP, when used correctly, allows you to isolate complexity in separate classes so that this complexity does not accumulate in one tangled tangle in one place.
Read about the principles of SOLID.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question