UML for .NET Developers ( Part 1)
Hôm nay ngồi rỗi rãi ôn lại chút kiến thức về UML, quyết định Post nội dung qua lên Blog cho đỡ quên.
Thôi, tiếng Việt chỉ thế thôi nhỉ, lập trình là phải Tiếng Anh cho nó PZỒ :D
1. Classes
| C# Code | UML | |
|
class Account } |
|
2. Attributes
[visibility] [/] attribute_name[multiplicity] [: type [= default_value]]
| C# Code | UML | ||
|
class Account private float balance =0; private float limit; } |
|
3. Operations
[visibility] op_name([[in|out] parameter : type[, more params]])[: return_type]
| C# Code | UML | |||
|
class Account public void Deposite(float amount) |
|
4. Visibility
Please note the follwing rules:
-
| C# Code | UML | |||
|
class Account public void Deposit(float amount) } |
|
5. Class & Instance
Operations and attributes that are static shoud have underline in the UML description.
| # Code | UML | |||
|
class Person |
|
Comments
Post a Comment