Process oriented:
In order to put an elephant into the refrigerator, 3 processes are required.
1) Open the refrigerator door (the refrigerator that opens the door)
2) Load the elephant (open the door and get the refrigerator with the elephant inside)
3) Close the refrigerator door (open the door, install the elephant and get the refrigerator closed)
Each process has a phased target, which, in turn, can be loaded into the refrigerator by completing the process.
1:
Refrigerator Door (refrigerator)
Refrigerator loaded (refrigerator, elephant)
Refrigerator closed (refrigerator)
= = Change the wording of
(refrigerator opens the refrigerator)
(refrigerator loaded into the refrigerator elephant)
(refrigerator closes the refrigerator)
2:
The refrigerator is closed (the refrigerator is opened (refrigerator), elephant)
= = Change the wording of
(The refrigerator is closed (refrigerator opens the refrigerator))
Object-oriented:
In order to put an elephant into the refrigerator, three actions (or acts) need to be done.
Each action has a performer, and it is the object.
1) refrigerator, you open the door for me
2) refrigerator, you put the elephant in (or, elephants, you drill me into the refrigerator)
3) refrigerator, you shut the door for me.
By doing these things in turn, you can put elephants into refrigerators.
1:
Refrigerator. Open the Door ()
Refrigerator. Loading (elephant)
Refrigerators. Closing ()
2:
Refrigerator. Open the door (). Put in (elephant). Close ()
The difference between object-oriented and process-oriented