Skip to content

Object-Oriented Design Self-Learning Repo: This repository serves as a practical guide for learning object-oriented design and SOLID principles in software development.

Notifications You must be signed in to change notification settings

boushphong/object-oriented-design

Repository files navigation

UML Class Diagram Cheatsheet

Class
-privateMember: int
#protectedMember: char
+publicMember: bool
──────────────────────────
+publicMethod(): void
+publicVirtualMethod(parameter: int): void
-privateMethod(): bool
#protectedMethod(value: int): char

Generalization

|       Child Class      |      is a      |       Parent Class       |
|       -kid: bool       |  ───────────▷  |  +virtualMethod(): void  |
| +virtualMethod(): void |

Realization

|         Class          |   Implements   |         Interface        |
|       -kid: bool       |  - - - - - -|  +virtualMethod(): void  |
| +virtualMethod(): void |

Association

          1..*             1
| Class 1 |  ───────────▶  | Class 2 |

Dependency

               <<use>>
| Class 1 |  - - - - - ->  | Class 2 |

Aggregation

          1    <<has a>>   1..*
| Class 1 |  ◇───────────  | Class 2 |

Composition

          1   <<owns a>>   1..*
| Class 1 |  ◆───────────  | Class 2 |

About

Object-Oriented Design Self-Learning Repo: This repository serves as a practical guide for learning object-oriented design and SOLID principles in software development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published