Shenzhen Java Training: the difference between the object-oriented and process-oriented

Shenzhen Java Training: the difference between an object-oriented process-oriented and
object-oriented: thinking of looking at the problem, focusing on finding a specific individual with special features, and then entrust this individual to do something, we put this individual is called Object .
Thinking more in line with human thinking is a habit of thinking [lazy], can be complex things simple, programmers will be converted from the executive director.
Process-oriented: thinking of looking at the problem, at the time thinking, focusing on how the problem is solved step by step, and then hands to solve the problem.
Here Insert Picture Description
Everything is based on object-oriented objects of this philosophical views

For example:
Bob is a computer white, want with a computer, after buying the parts need to be transported to the house, after the assembly is complete, open the computer to play games

Process-oriented
1. Xiao Ming supplementary computer literacy
2. Xiao Ming to buy parts
3. Xiao Ming put the parts back home
4. Xiao Ming computer assembly
5. Xiao Ming own turn on the computer, start playing

Object-Oriented

1. commissioned a friend to understand computer (Pharaoh) to help buy parts
2. entrust a person can run errands to buy parts
3. entrust a person will be assembled computers assembled computers to help Bob
4. Bob playing computer boot

Object-oriented focus on the final results achieved, focusing on the process steps for each implementation.
Object-oriented more in line with current thinking.
Object Oriented there are three characteristics: encapsulation, inheritance, polymorphism; hide implementation details,
easy to use to improve the reusability, security, and scalability.

Guess you like

Origin blog.csdn.net/qq_37124438/article/details/95333460