Answer the question
In order to leave comments, you need to log in
How to rewrite programs for the OOP paradigm?
Hello, there are several programs in JS and Python.
They are written in a functional style and 100% fulfill their tasks
in them about 20-30 functions.
However, in order to study OOP, I would like to rewrite them using classes, prototypes, etc.
Are there any examples of how code written in a functional style is rewritten in OOP ?
What is the problem?
I myself understand how OOP works, but I just can’t start writing, because I don’t know the best practices and experience in OOP (except for simple examples from books)
Answer the question
In order to leave comments, you need to log in
Learn C ++, OOP is normally organized there. In JS and PHP, this is all on strings, and by and large - a tribute to fashion, not a necessity. OOP is needed in complex projects, not in the web.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question