The difference between object-oriented and process-oriented

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.