Your SlideShare is downloading. ×
UML knowledge
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

UML knowledge

209
views

Published on

Before learning design pattern, you should know something about UML.

Before learning design pattern, you should know something about UML.

Published in: Technology

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
209
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • 因為菱形也有可能是空的 因此在 Static 的圖上有雖然有 Member Field, 但有可能是空的 Aggregation: has a
  • Composition: is a part of (owns a)
  • Transcript

    • 1. 1UML Knowledge Li-Wei Cheng
    • 2. UML related knowledge - 12  Association  The most abstract way to describe relationship between classes  A kind of link between two classes or more  Any relationship between object of two classes
    • 3. UML related knowledge - 23  Weak Association (Dependency)  If class A’s methods include parameter of Class B’s reference, or returns reference of Class B, it calls A depends on B.  Strong Association  If class A holds class B’s reference, it calls A have strong association with B.
    • 4. UML related knowledge - 34  Aggregation (Association with part/whole relation)  A part of relationship between Class A (whole) and Class B (part)  Also called shared association  Doesn’t state in any way that Class A owns Class B nor that there’s a parent-child relationship between the two
    • 5. UML related knowledge - 45  Composition (Association with strong life cycle relation)  A strong life cycle dependency between the two, meaning that when Class A is deleted then Class B is also deleted as result.  Also called not shared association.  Use more specific composition link instead of the aggregation link or association link.