没有合适的资源?快使用搜索试试~ 我知道了~
2面向对象基本概念1
需积分: 0 0 下载量 88 浏览量
2022-08-03
23:01:33
上传
评论
收藏 619KB PDF 举报
温馨提示
试读
40页
1. Models help you to visualize a system, as you want it to be. A model helps th
资源详情
资源评论
资源推荐
► ► ►
Module 2
Concepts of Object Orientation
1
IBM Software Group
®
Mastering Object-Oriented Analysis and Design
with UML 2.0
Module 2: Concepts of Object Orientation
Topics
Four Principles of Modeling.................................................................................. 2-4
Representing Classes in the UML ........................................................................ 2-12
Class Relationships ............................................................................................. 2-14
What is a Structured Class?................................................................................. 2-21
What Is an Interface?.......................................................................................... 2-29
What is a Port?................................................................................................... 2-33
Review............................................................................................................... 2-39
© Copyright IBM Corp. 2004 2 - 1
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Mastering Object-Oriented Analysis and Design with UML 2.0
Objectives: Concepts of Object Orientation
2
Objectives: Concepts of Object Orientation
Explain the basic principles of object
orientation
Define the basic concepts and terms of
object orientation and the associated UML
notation
2 - 2 © Copyright IBM Corp. 2004
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Module 2 - Concepts of Object Orientation
Review: Why Model?
3
Review: Why Model?
Modeling achieves four aims:
Helps you to visualize a system as you want it to be.
Permits you to specify the structure or behavior of a
system.
Gives you a template that guides you in constructing a
system.
Documents the decisions you have made.
You build models of complex systems because
you cannot comprehend such a system in its
entirety.
You build models to better understand the system
you are developing.
According to Booch in The Unified Modeling Language User Guide, modeling achieves
four aims:
1. Models help you to visualize a system, as you want it to be. A model helps the
software team communicate the vision for the system being developed. It is
difficult for a software team to have a unified vision of a system that is described
only in specification and requirement documents. Models bring about
understanding of the system.
2. Models permit you to specify the structure of behavior of a system. A model
allows how to document system behavior and structure before coding the
system.
3. Models give a template that guide you in constructing a system. A model is an
invaluable tool during construction. It serves as a road map for a developer. Have
you experienced a situation where a developer coded incorrect behavior
because he or she was confused over the wording in a requirements document?
Modeling helps alleviate that situation.
4. Models document the decisions you’ve made. Models are valuable tools in the
long term because they give “hard” information on design decisions. You don’t
need to rely on someone’s memory.
© Copyright IBM Corp. 2004 2 - 3
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Mastering Object-Oriented Analysis and Design with UML 2.0
Four Principles of Modeling
4
Four Principles of Modeling
The model you create influences how the
problem is attacked.
Every model may be expressed at different
levels of precision.
The best models are connected to reality.
No single model is sufficient.
Modeling has a rich history in all the engineering disciplines.
The four basic principles of modeling are derived from this history.
1. The models you create profoundly influence how a problem is attacked and how
a solution is shaped.
2. Every model may be expressed at different levels of precision.
3. The best models are connected to reality.
4. No single model is sufficient. Every non-trivial system is best approached through
a small set of nearly independent models.
2 - 4 © Copyright IBM Corp. 2004
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Module 2 - Concepts of Object Orientation
Review: Basic Principles of Object Orientation
5
Review: Basic Principles of Object Orientation
Abstraction
Hierarchy
Object Orientation
Encapsulation
Modularity
There are four basic principles of object orientation. They are:
• Abstraction
• Encapsulation
• Modularity
• Hierarchy
© Copyright IBM Corp. 2004 2 - 5
Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
剩余39页未读,继续阅读
经年哲思
- 粉丝: 15
- 资源: 329
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- pta题库答案c语言之排序4统计工龄.zip
- pta题库答案c语言之树结构7堆中的路径.zip
- pta题库答案c语言之树结构3TreeTraversalsAgain.zip
- pta题库答案c语言之树结构2ListLeaves.zip
- pta题库答案c语言之树结构1树的同构.zip
- 基于C++实现民航飞行与地图简易管理系统可执行程序+说明+详细注释.zip
- pta题库答案c语言之复杂度1最大子列和问题.zip
- 三维装箱问题(Three-Dimensional Bin Packing Problem,3D-BPP)是一个经典的组合优化问题
- 以下是一些关于Linux线程同步的基本概念和方法.txt
- 以下是一个简化的示例,它使用pygame库来模拟烟花动画的框架.txt
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0