A
A
Azimia Reg2019-05-08 13:43:25
Python
Azimia Reg, 2019-05-08 13:43:25

What is the basics of OOP?

I am somehow familiar with OOP, but when I hear the basics of OOP, I can’t understand what exactly it is. Can you explain and give some examples?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
S
Stalker_RED, 2019-05-08
@Stalker_RED

Hm... It's kind of blurry, for example, there is programming itself, and there is OOP, this is part of it, a very important part, that's all I know about what OOP is, if I may say so.

Well, read about five books about OOP and you'll know more.
All explanations "in a nutshell" are doomed to failure, because OOP is primarily about complexity .
When you are shown a simple example, and they say "this is oops" and you have been programming for more than a day, and you understand how to make it even easier without any OOP. And you guess - or they are all psychos, or I don’t understand something?
And if you take something fucking complicated, then remake it in OOP, and show the difference - then suddenly an epiphany can come. But in three lines the complex does not fit. And you are too lazy to open the book.
This is such a hopeless situation - until you start to dig deep, you won’t really understand anything about OOP.

H
Hanneman, 2019-05-08
@Hanneman

Wikipedia article . For acquaintance. It is unlikely that someone will write you a gag that will exceed the scope of this article.

A
Aleksandr, 2019-05-08
@flyingpandasdiyingslow

It is very scary that you apparently did not even try to google. Even with the simplest query "oops python" you can find a bunch of articles like this one - https://python-scripts.com/object-oriented-program... . From personal experience, I can only advise you to definitely fix everything with practical exercises.

H
hack504, 2019-05-08
@hack504

Roughly speaking, OOP is a programming paradigm when your functional code (despite the fact that it works as a whole) is divided into several sections of code (abstraction) independent of each other (encapsulation), but at the same time with the possibility of addition or change by others sections of code (inheritance). In essence, the same as functional programming, but it solves the problems of code understanding, hierarchy, reuse, and so on - for example, if we go beyond the basics, then OOP includes tools for use in team development - privacy and publicity, interfaces and abstractions. etc. etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question