1. | How is data stored in a typical object-oriented application? |
|
2. | How are approaches to programming analogous to nouns and verbs? |
|
3. | What prevents some business applications from being modeled using object- oriented programming? |
|
4. | What is a dynamic hierarchy? |
|
5. | What is a static hierarchy? |
|
6. | How can a hierarchy be morphed? |
|
7. | Do we look at the real world as objects? |
|
8. | Explain the potential conflict between the simplicity of an application and adherence to object-oriented programming theory. |
|
9. | Is the objective of an object-oriented program to simulate the real world? |
|
10. | What is the difference between an internal model and an external model? |
|
Answers
1. | Many object-oriented applications store data in a relational database and use a conversion routine to translate data from data members of objects into rows in a relational database and to transfer data from a relational database to data members of objects. |
2. | Objects are thought of as nouns, such as a person, place, or thing. Tasks are thought of as verbs because they describe actions within an application. |
3. | Some business applications cannot be organized easily into discrete objects, which posses a challenge for programmers. |
4. | A dynamic hierarchy is an organization of objects in which the relationship among the objects is changed over a short timeframe. |
5. | A static hierarchy is an organization of objects in which the relationship among objects is maintained over time. |
6. | A hierarchy is morphed when a member function has many versions of a behavior requiring many overloaded functions. |
7. | Some programmers feel we view the world as tasks rather than as objects. For example, we think to turn on the air conditioner in hot weather, which is a task. We don t think air conditioner, turn on, which is the object-oriented logical approach. |
8. | Object-oriented programming theory assumes that the real world is organized neatly into objects that can be defined easily as objects in an object-oriented application. Some aspects of the real world can be defined as objects; other aspects of the real world don t lend themselves to such a definition. |
9. | Yes, the goal of an object-oriented program is to simulate real-world objects in a computer application. However, many business applications do not simulate real-world business situations. The reality is that simulating the real world does not necessarily use the best possible means to achieve a business objective. |
10. | An internal model describes how an application works behind the scenes. An external model describes how a person interacts with the application. |