Object-oriented and process-oriented summary

Process-oriented

Is to analyze the steps required to solve the problem, then use the function to implement these steps, step by step, when used in a call to a turn on it.

Object-Oriented

The transaction is a problem down into objects, the object was not intended to establish a complete step, but a thing to Miao Xu behavior throughout the problem-solving steps in.

Relationship between the two

1, is a problem-solving way of thinking, the way the code is organized.

2, solve simple problems can use process-oriented.

3, to solve complex problems: the use of object-oriented macro me, the micro processing is still oriented process.

Guess you like

Origin blog.csdn.net/datuzijean/article/details/86669463