-
-
Notifications
You must be signed in to change notification settings - Fork 0
OBJECTS
ThePastor edited this page May 31, 2021
·
8 revisions
An Object is an encapsulation (or "named object), like a function, that is both code and data, but what distinguishes functions from objects is that they construct order upwards from the machine, rather than rule over the machine to perform computation.
That is, objects are architecting structure -- functions don't do that. If you are trying to do that in a function, you're doing it wrong -- you should be using OOP.
All objects should follow the Rule of Four which states that there are 4 primary functions (on 2 axiis) + and - 1 in each direction in some cases for scaling.
- container: in, out, contains, index, size,
- generic: in, out, get state,
- hardware: read, write,
Singularity