问题 问答题 简答题

将面向对象方法与结构化方法进行比较。

答案

参考答案:

分析是问题抽象(做什么),设计是问题求解(怎么做),实现是问题的解(结果)。任何方法学对客观世界的抽象和求解过程都是如此。在问题抽象阶段,结构化方法面向过程,按照数据变换的过程寻找问题的结点,对问题进行分解。因此,与面向对象方法强调的对象模型不同,描述数据变换的功能模型是结构化方法的重点。如果问题世界的功能比数据更复杂或者更重要,那么结构化方法仍然应是首选的方法学。如果数据结构复杂且变换并不多,那么如以过程主导分析和设计,一旦有系统变更就会给下游开发带来极大混乱。

由于对过程的理解不同,面向过程的功能细分所分割出的功能模块有时会因人而异。而面向对象的对象细分,从同一问题领域的对象出发,不同人得出相同结论的比率较高。

在设计上,结构化方法学产生自顶向下、结构清晰的系统结构。每个模块有可能保持较强的独立性,但它往往与数据库结构相独立,功能模块与数据库逻辑模式间没有映射关系,程序与数据结构很难封装在一起。如果数据结构复杂,模块独立性很难保证。面向对象方法抽象的系统结构往往并不比结构化方法产生的系统结构简单,但它能映射到数据库结构中,很容易实现程序与数据结构的封装。

在软件工程基本原则中有一条“形式化原则”,即对问题世界的抽象结论应该以形式化语言(图形语言、伪码语言等)表述出来。结构化方法可以用数据流图、系统结构图、数据辞典、状态转移图、实体关系图来进行系统逻辑模型的描述;而面向对象方法可以使用对象模型图、数据辞典、动态模型图、功能模型图。其中对象模型图近似系统结构图与实体关系图的结合,动态模型图类似状态迁移图,功能模型图类似数据流图。

阅读理解

阅读理解

       To make sure that you enjoy your visit to the Harper Hot Springs and that you are safeduring your

visit, please take time to read the following:

       Do not place your head under the hot water because it may be bad for your health.

       Do not run around because the floors may be slippery.

       Do not leave your children alone.

       Do not leave your things about.  Just ask one of our workers to look after your things.

       Do not eat or drink anything in the area because we want to keep here clean.  

       There is aplace for you to eat and have soft drinks when you want to have a rest.

       Do not bring into the area anything made of glass, because it may be easily'broken when you fall.

       Do not smoke in the area.

       Do not stay in the sunlight for too long.We hope that you will enjoy your visit here.

1. The purpose of this notice is                 

A.  to ask people to visit the springs      

B.  to make visitors know the area      

C.  to tell visitors what not to do  

D.  to tell the visitors to have a rest

2. The notice is written for                  

A. visitors    

B. children    

C. workers    

D. managers

3. People are not allowed to         _  .            

A. bring anything into the area      

B. have soft drinks in the area        

C. look after children in the area  

D. sit in the sun for long in the area

4.        is NOT mentioned in the notice.         

A.  How long visitors can stay in the area          

B. What visitors cannot bring to the area          

C.  Who looks after the visitors' things            

D.  Whether smoking is allowed in the area

5. The Chinese meaning for “slippery” is             .

A. 平坦的    

B. 湿滑的    

C. 狭窄的    

D. 冰凉的

单项选择题