I
I
Ismail_18092020-07-08 10:35:21
Programming
Ismail_1809, 2020-07-08 10:35:21

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

6 answer(s)
I
Ilya, 2020-07-08
@Ismail_1809

Just answer the question please

In OOP with classes there are classes, in OOP without classes, respectively, there are no classes.

T
Timur Pokrovsky, 2020-07-08
@Makaroshka007

OOP with classes is OOP, OOP without classes is not OOP

G
GavriKos, 2020-07-08
@GavriKos

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

R
res2001, 2020-07-08
@res2001

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.

X
xmoonlight, 2020-07-08
@xmoonlight

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.

E
evgeniy_lm, 2020-07-08
@evgeniy_lm

Class is the basis (principle) of OOP no classes, no OOP

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question