OC learning-object-oriented personal understanding, oc learning-object-oriented

Source: Internet
Author: User

OC learning-object-oriented personal understanding, oc learning-object-oriented

 

1. What is object-oriented?

The following is my explanation on Baidu:

Object Oriented (OO) is a software development method. Object-oriented concepts and applications have gone beyond programming and software development, extended to fields such as database systems, interactive interfaces, application structures, application platforms, distributed systems, network management structures, CAD technology, and artificial intelligence. Object-oriented is a method of understanding and abstraction of the real world. It is a product after the development of computer programming technology [1] to a certain stage.

All things are objects. By means of object-oriented, the real world things are abstracted as objects, and the relations in the real world are abstracted as classes and inheritance, it helps people achieve abstraction and digital modeling of the real world. Through the object-oriented method, the analysis, design and programming of complex systems are more conducive to human understanding. At the same time, object-oriented programming can be effectively improved. Through encapsulation technology, the message mechanism can quickly develop a new system just like building blocks. Object-oriented refers to a program design model and a program development method. An object refers to a set of classes. It uses objects as the basic unit of a program and encapsulates programs and data to improve software reusability, flexibility, and scalability.

Scale down:

Object Oriented (OO) is a method for understanding and abstracting the Real World. It abstracts the real world into objects and abstracts the relations in the real world into classes and inheritance, it helps people achieve abstract and digital modeling of the real world, so that people can analyze, design, and program complex systems in an understandable way.

Scale down:

Object-oriented refers to a programming model and a software development method.

 

2. object-oriented and process-oriented ideas

(1) differences between object-oriented and process-oriented

Process-oriented is to analyze the steps required to solve the problem, and then use functions to implement these steps Step by step. You can call these steps one by one.
(Process-oriented focuses on the steps required to solve the problem)
Object-oriented refers to breaking up a problem transaction into various objects. The object is created not to complete a step, but to describe the behavior of a thing in the whole process of solving the problem.
(Object-Oriented focuses on the objects needed to solve the problem)
Take playing songs on a computer as an example:
1> process-oriented
Turn on your computer
Play songs on your computer
Turn off your computer
2> object-oriented
Computer
Start
Play a song (as a term)
Shutdown

 

Related Article

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.