# ## summarizes the object-oriented # ## '' ' 1. Simple control flow code collation 2. Define the function more structured code reuse, but the operation of separating the data and 3. The operation of the embedded data and a belt structure ( function or the like) which form a 'target system' process Description: 1. define the performance function, the data is passed as a parameter dictionary, a dictionary keyword dictionary data fetch 2. dictionary definition: function function data + 3. defined functions, inline dictionary 4. define the function and performance function inline function dictionary, and the dictionary returns 5. calls: call returns the keyword dictionary, the dictionary and an incoming call parameters ' '' DEF struct_object (NAME1, NAME2, NAME3): DEF base_style (fuct_dic): Print ( ' [% S] repetition, a large rigid; unstructured system is not ' % fuct_dic [ ' NAME1 ' ]) DEF function_1 (fuct_dic): Print ( '[% s] implementation code re-use, more flexible; however, the operation of separating data and ' % fuct_dic [ ' NAME2 ' ]) DEF object_1 (fuct_dic): Print ( ' [% s] and the data collation operation, more structured ' fuct_dic% [ ' NAME3 ' ]) DEF fuct_1 (NAME1, NAME2, NAME3): fuct_dic = { ' NAME1 ' : NAME1, ' NAME2 ' : NAME2, ' NAME3 ' : NAME3, ' base_style ' : base_style, 'function_1 ' : function_1, ' object_1 ' : object_1 } return fuct_dic RES = fuct_1 (NAME1, NAME2, NAME3) return RES the Option1 = struct_object ( ' simple code ' , ' function ' , ' object oriented ' ) Print (the Option1) the Option1 [ ' base_style ' ] (the Option1) the Option1 [ ' function_1 ' ] (the Option1) the Option1 [ ' object_1 '](option1)
[Simple code] repeat, a large rigid; no system structure is not
[Function] implementation code re-use, more flexible; however, the operation of separating data and
[object-oriented] the data and the classification operation, a more structured