-
Okay, I'll type it myself according to our textbook :)
Object-oriented is to simulate the way of thinking that human beings are accustomed to as much as possible, so that the methods and processes of developing software are as close as possible to the methods and processes of human beings understanding the world and solving problems.
Process-oriented, or structured programming, is a top-down design approach that seeks refinement step by step, and a single-entry, single-outlet program structure.
This is the previous answer, if you really want to explain, you can break it like this:
Let's say you want to do a project: robbing a bank.
Facing the process: You have a few guns in hand, know so many brothers who are not afraid of death, just a certain one in the bank to do security work, he knows when the bank is going to enter the bank, inadvertently told you, you have been short of money recently, your wife has no money for a long time to spend every day to scold your mother, one night you and your brothers drank alcohol, on the spur of the moment to discuss to rob the bank, the brother letter has been true, the topographic map, the street map all brought, so you use the strength of the wine to plan the oath, and when you wake up, regret it, but forced to face to actDue to the correct intelligence and proper preparation, you were able to escape from the robbery successfully, but in the end, when you were ready to divide the spoils, you found that there was no discussion about the original sharing, so you killed each other for a while.
Either way, the above is a complete and successful robbery process.
But there is a lot of luck involved in this process, and it is very unlikely that it will be done again.
Target-oriented: Planners: Propose ideas and look for investment.
Investors: Find venture capital.
Gunfire ** business: procurement**.
Black car ** dealer: purchase vehicles.
Bank architects, security guards: bought in cash or in shares.
There are a number of outlaws: hire underworld forces and negotiate a share.
Develop a roadmap, a schedule.
let`s go!!
See, this is closer to the real world, everyone has their own role, their own functions, more professional, if the cooperation is good, you can continue to cooperate next time (software reuse).
However, we advocate a professional division of labor.
-
Definition 1: An object-oriented approach is an approach to constructing, testing, and refactoring software using concepts such as objects, classes, encapsulation, inheritance, polymorphism, and messages.
Definition 2: The object-oriented approach is based on epistemology, using objects to understand and analyze the problem space, and to design and develop a software system composed of objects (solution space). Since both the problem space and the solution space are composed of objects, the problem caused by the inconsistency in the structure of the problem space and the solution space can be eliminated.
In short, object-oriented is oriented to the thing itself, and the object-oriented analysis process is the process of understanding the objective world.
The object-oriented approach starts from objects and develops concepts such as objects, classes, messages, inheritance, etc.
-
To put it simply:
For example, if you want to program to implement "people fighting", process-oriented is to write a function on how to fight, and object-oriented, that is, you can first build an object "person" no matter how you fight, give him a function to fight, and then improve the function of this fight.
The advantages of this are, 1, the package is very good: maybe people can do other things besides fighting.
2. Easy to maintain: If you feel that the method of fighting between men and women is different, then you can inherit 2 new types of men and women from people, and then rewrite this method.
-
The use of object orientation is very important in programming languages, and it took many years to acquire this technology in PHP languages. The advent of object-orientation was a great revolution in system development, and programming languages began to move from applications back to data. Object-oriented brings applications closer to the real world by shifting the focus of the programming process to the real thing being modeled.
The following computer training mainly introduces object-oriented for you.
1. What is object-orientation?
It's like you're the president of a company, and you're doing the job of assembling a set of computers. In other words, object-oriented is either an abstract execution or a work done by an employee. In detail, the president is not required to think about this issue.
IT training believes that the benefits are obvious, that a high-level management company can coordinate work without managing a high-level company, and that only a few employees who have implemented it will be in trouble.
2. Object-oriented characteristics.
1. Encapsulation. Hides the properties and implementation details of objects, exposes only the interface to the outside, and controls the access level of reading and modifying properties in the program; Combine abstract data and behaviors (or functions) into an organic whole, that is, organically combine data with the source of operating data to form a "class", where data and functions are members of the class.
2. Inheritance. Inheritance is the mechanism by which one or more classes are derived from a base class. A class that inherits from another class is called a subclass of that class.
This relationship is often compared to that of a father and a child. A child class inherits the properties of the parent class. These genus chaotic properties consist of properties and methods.
The North Jade Bird believes that the subclass can add new functions other than the parent class, so the subclass is also called the "" of the parent class.
3. Polymorphism. Polymorphism refers to the fact that OOP can redefine the nature or behavior of a class depending on the context in which it is used, or that many different implementations of an interface are polymorphic. Huilongguan Beida Jade Bird suggested that if different child objects are regarded as parent classes, the differences between different child objects can be shielded, and a common ** can be written, and general programming can be carried out to adapt to changes in requirements.
It can be understood like this:
Process-oriented means that you need to know how to do the whole process. Object-oriented, on the other hand, means that you only need the method that the other party provides you with how to do it, and you only need to call it. >>>More
A programming approach that treats data types and functions as a whole is called object-oriented. >>>More
property for property disputes.
Object-orientation is about treating an application as a group of "objects" and then programming those objects to make them functional. >>>More
Some couples have experienced examples of getting married after a trial marriage, and their married life is also very happy. Marriage is when people from two families form a new family again, and the different living habits and hobbies of both parties can complement each other after running-in. If the two parties get married first, and only discover the gap between them after the marriage, it often leads to resentment among many couples, and even more so to develop domestic violence. >>>More