Object-oriented properties Example day24

  Programming theory of evolution:

1. No programming is initially unstructured tissue, in steps from a simple write instruction control flow

2. extracted from the instruction code blocks or duplicate logic, grouped together (for example, you define a function), then implemented to code reuse, and the code with no structure to the mechanism of, the procedure for creating variants It was more logical

3. We define functions are independent of the variables defined outside the function, then passed to the function as a parameter, this means: data and variables are separated

4. If we embedded in a data structure and operation (function or the like) which, then we have a "target system" (data object is the product of functions integrated together)

Class: is an abstract concept, a common characteristic, action

Object: a particular class generated by the presence of

 

Guess you like

Origin www.cnblogs.com/wuxiping2019/p/11099208.html