Sitting opposite your girlfriend-object-oriented

Source: Internet
Author: User

I often picked up software development books and mentioned object-oriented. I have just been in touch with software development for a few months. I think it is similar to what I mentioned in the book. So what is object-oriented, in fact, I am still not quite clear. Some people say that it is a special high-level language, and some outsiders say that it means "sitting opposite your girlfriend. Object-oriented is to break through the limitations of ideas. It is difficult to say that it is easy to say that it is simple. I have engaged in this work with my passion for programs, although he is not very proficient in it, he has at least a perceptual understanding and understanding of object-oriented systems.

Before understanding the facial features, let's take a look at "objects". objects can be called their own girlfriends, or even more the impressions of objects in the world on the human brain, it is the reaction of human consciousness to consciousness. It is the first thing that exists for a concept. It includes the will of a person. From the perspective of the system, it is the problem or the abstraction of a problem in the domain. It reflects the information that the transaction needs to save and play a role in the system. Simply put, everything is an object, a tree, a person, a company can be said to be an object. I will not talk about it below. The subject of Direct Cutting, object-oriented is a method for us to solve the problem, especially the method for solving the problem using the application software technology. In the face of complicated systems, we can analyze them as an object. A system (solution) as an object can be composed of multiple parts. This object can also be composed of multiple objects, and similar transactions can be represented by one object, the benefits of doing so are obvious. Its flexibility and efficiency can greatly reduce the workload of designers and simplify the actual model.

Object-Oriented Analysis includes object-oriented analysis, object-oriented design, and object-oriented progamming.

Object-Oriented Analysis OOA is an analysis method. It can find the class and object views in the vocabulary of the problem domain to view the requirements.

Object-Oriented Design (OOD) is a design method. It contains an object-oriented decomposition process and a representation method to describe the logical and physical models of the system in design, static and dynamic models.

Object-Oriented Programming (OOP) is an implementation method. A program is organized into a set of object collaboration. Each object represents an instance of a class, the class of an object is all the members in the class hierarchy associated with the inheritance relationship. It is easy to understand. Object-oriented is a method to solve problems in software development, it can be understood as "taking objects as the core" or "considering objects. Objects have a corresponding relationship with the real world, which is used to break down the problem.

Object-oriented features: encapsulation, inheritance, and Polymorphism

Object-Oriented Analysis: 1. Create a functional model, 2. Create an object model, 3. Create a dynamic model, and 3. Define a service

Design principles: 1. Give priority to combinations rather than inheritance 2. Implement interface programming rather than interfaces 3. open-closed rules (OCP)

4. liskov replacement rules (LSP) 5. Single Responsibility Principle (SRP)

6. Dependency inversion principle (DIP) 7 .. interface separation principle (ISP)

In short, object-oriented is the design of the class, the role of the class is to produce the object, the popular understanding is that object-oriented is sitting opposite to the girlfriend, that is the reflection of people outside our industry !!

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.