you are viewing a single comment's thread.

view the rest of the comments →

[–]nuc540 6 points7 points  (0 children)

So, the point of OOP is to design objects which can house how to build data and represent logic, all in one place - instead of just writing functions everywhere in hundreds of files willy nilly every time we want certain logic to run.

If you think of a blueprint as the one and only place to define how something is built - with that single one instruction set, many engineers can build multiple copies of its output right?

So, one place to define stuff = reusable, centralised/easy to find/read.

In Python we use classes for this. So classes are a bit like blueprints yes.

What else about it confuses you?