Java Basics-Learning notes (v)-process-oriented and object-oriented differences

Source: Internet
Author: User

To understand object-oriented language, we should begin with understanding the process of object-oriented.

Recall before learning C language, every time to get a topic, the first thought is that the first analysis of the steps required to solve the problem, each function point, with a function to express, use the time one to make a call, the program's center of gravity on the function (predicate), object-oriented, is to break down the problem into objects, not to accomplish a single step, but to describe the behavior of each thing throughout the problem-solving process, emphasizing the object itself (subject)

There is also the fact that the data is stored separately or in conjunction with the operation. Data is independent for process-oriented purposes. In object-oriented, the object itself provides the space to store the data (the data members of the class), so that the parameters of the function is much simpler to pass, and when the data is encapsulated, the access to the data becomes reliable.

Two words:
Object-oriented is the abstraction of physical height
Process-oriented is a top-down programming.
Object-oriented is to create an abstract model from the bottom up and then use the model.

Java Basics-Learning notes (v)-process-oriented and object-oriented differences

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.