设计模式基础:类及类关系的UML表示2009-10-26 17:00 by 宗哥,1891阅读,1评论,收藏,编辑UML中,类关系分为这几种,泛化(generalization), 实现(realization),依赖(Dependency),关联(associate),聚合(aggregation...
分类:
其他好文 时间:
2014-06-25 15:04:09
阅读次数:
269
(一)
假设一个class用来表现有理数,允许整数“隐式转换为”有理数似乎很合理。
class Rational{
public:
Rational(int numerator = 0, int denominator = 1); //刻意不为explicit;允许int-to-Rational隐式转换
int numerator()const;
int den...
分类:
编程语言 时间:
2014-06-24 22:30:51
阅读次数:
270
都说岁月无情人有情,记忆容易催人老,可有时候反倒觉着人比岁月更无情,岁月留下了我们成长的印记,可是有时候曾经觉得会相伴永远的人就这样咫尺天涯,分别的时候说一句再见,又或许是再也不见…....
分类:
其他好文 时间:
2014-06-24 21:41:04
阅读次数:
160
IronCAD Design Collaboration Suite 2012 HF1 14.0 1DVDMentor.Graphics.O-in 3.0 Linux 1DVD Avid Media Composer 6.0.0 MacOSX 1DVD IBM.Rational.Requisitep...
分类:
其他好文 时间:
2014-06-24 20:46:53
阅读次数:
258
??
Getting Started
开始
Modeling a system involves identifying the things that are important to your particular view. These things form the vocabulary of the system you are modeling. For example, ...
分类:
其他好文 时间:
2014-06-22 22:33:29
阅读次数:
220
??
Classes
类
Classes are the most important building block of any object-oriented system. A class is a description of a set of objects that share the same attributes, operations, relationships, ...
分类:
其他好文 时间:
2014-06-22 21:38:18
阅读次数:
226
??
Artifacts
工件
“Hello, World!”
is implemented as an applet, so it never stands alone but instead is typically a part of some Web page. The applet starts when its enclosing page is opened, trigge...
分类:
其他好文 时间:
2014-06-22 19:50:03
阅读次数:
180
现在是二月,并且到现在你也许已经读到、或听到人们谈论UML 2.0 —— 包含若干进步的 UML 的新规范,所做的变化。考虑到新规范的重要性,我们也正在改动这个文章系列的基础,把我们的注意力从 OMG 的 UML 1.4 规范,转移到 OMG 的已採纳 UML 2.0草案规范(又名 UML 2)。我...
分类:
其他好文 时间:
2014-06-21 08:12:05
阅读次数:
251
1. 高性能WEB开发基础http://www.uml.org.cn/net/201404225.asp2. 高性能WEB开发进阶(上)http://www.uml.org.cn/net/201404235.asp3. 高性能WEB开发进阶(下)http://www.uml.org.cn/net/2...
分类:
Web程序 时间:
2014-06-20 21:46:32
阅读次数:
197
Abstract Factory定义 为一系列相关对象或相互依赖的对象创建一个接口,而无需指定它们的具体类。抽象工厂在这里起到一个约束的作用,并提供所有子类的一个统一外观,来让客户端使用上面的uml图,我们会发现,ConcreteFactory1只会生成A1+B1,是有严格约束的,如果没有这个约束条...
分类:
编程语言 时间:
2014-06-20 19:49:57
阅读次数:
297