Answer the question
In order to leave comments, you need to log in
What is the difference between OOP with classes and without classes?
Just answer the question please
Answer the question
In order to leave comments, you need to log in
Just answer the question please
Selecting each entity, for example, into a microservice is a stupidly separate process. And inside procedurally nagovnokodit. So much for "oop without classes", in some theoretical sense.
True, in this case, only encapsulation - it is difficult with inheritance and polymorphism
Without classes, we can only talk about some style of programming similar to OOP. It will not be a full-fledged OOP. In OOP, the compiler does many things on its own, in a procedural language you have to implement these things by hand, such as inheritance. There are also enough other restrictions imposed by procedural languages, for example, C does not have operator overloading like C ++, so you will have to write OOP-style C without them, etc. etc.
In early versions of C++, it was kind of like a preprocessor for the C compiler. So nothing is impossible. A full-fledged implementation in the OOP procedural language is too expensive, it makes sense only for some experimental purposes or for study.
The presence or absence of an explicit object structure for the compiler.
This makes it easier to manage the initially specified structure of the object as the code is executed and the allocated memory, but worsens the readability of the source code text: it makes it difficult to understand the logic of its work.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question