U
U
uzi_no_uzi2018-04-19 20:59:00
OOP
uzi_no_uzi, 2018-04-19 20:59:00

What is OOP for?

What is OOP for? Can someone explain in simple terms? In Google about this, only analyzes of this very OOP.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stalker_RED, 2018-04-19
@uzi_no_uzi

To manage complexity.
https://habrahabr.ru/post/169487/
Everything that is done with the help of OOP can be written in a procedural style, for example, but the more complex the project, the more difficult it will be to figure out all this mess. The whole point of OOP is to break a huge complex system into a bunch of separate SIMPLE objects, methods, entities.
And abstraction is inseparable from OOP. To be able to throw away one part of the program and replace it with another.
Today, we are displayed on a web page that is clicked with a mouse, and tomorrow not with a mouse - but with a touch with your fingers. And the day after tomorrow, in general, in a VR helmet, and voice control. And if the system is properly designed, it will not have to be completely redone, but only the part that is responsible for input / output.

A
Alexander Skusnov, 2018-04-20
@AlexSku

Objects (classes) are more complex type structures.
There are simple types: integer and fractional numbers, booleans, string characters.
Then came arrays (many elements under the same name plus index) and records (structures with fields).
Objects (classes) are records (structures), in which, in addition to fields of ordinary types, functions called methods have been added. Inheritance, constructors and destructors, access methods (public, private...) are introduced for objects (classes).

D
DarkMode, 2018-04-19
@DarkMode

To save intermediate states of objects.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question