> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/programming/software-design/uml-and-modeling/uml/umlrelationshipsoverview.md).

# UMLRelationshipsOverview

## UML 관계 란?

* 클래스, 객체, 모듈, 구성 요소 간의 연결을 표현하는 개념이다.
* 객체지향 시스템에서 클래스나 요소들이 어떻게 상호작용하는지를 나타내는 핵심 개념이다.

{% hint style="info" %}
✔️ UML 관계는 클래스 다이어그램, 객체 다이어그램, 컴포넌트 다이어그램 등에서 사용된다.

✔️ 객체 간의 연관, 포함, 상속, 의존 등의 개념을 시각적으로 표현할 수 있다.

✔️ 관계의 강도에 따라 다양한 유형이 존재한다.
{% endhint %}

***

## UML 관계 유형

| 관계 유형                               | 설명                        | UML 표현 기호       | 예제                                              |
| ----------------------------------- | ------------------------- | --------------- | ----------------------------------------------- |
| <p>연관관계<br>Association</p>          | 클래스 간의 일반적인 관계 (멤버 변수 포함) | ───> (실선)       | class A { B b; }                                |
| <p>집합관계<br>Aggregation</p>          | 전체-부분 관계 (부분이 독립적)        | ◇───> (흰색 마름모)  | class Department { List\<Employee> employees; } |
| <p>구성관계<br>Composition</p>          | 강한 전체-부분 관계 (부분이 독립 불가능)  | ◆───> (검은색 마름모) | class House { private Room room = new Room(); } |
| <p>일반화<br>Generalization, 상속</p>    | 부모-자식 관계 (상속)             | △───> (빈 삼각형)   | class Dog extends Animal {}                     |
| <p>실체화<br>Realization, 인터페이스 구현</p> | 클래스가 인터페이스를 구현            | △---▷ (점선 삼각형)  | class Dog implements Animal {}                  |
| <p>의존관계<br>Dependency</p>           | 실행 시점에서만 영향을 미치는 관계       | ---▶ (점선 화살표)   | void method(B obj) { obj.doSomething(); }       |

<details>

<summary>관계의 강도 (간단 정리)</summary>

관계의 강도는 다음과 같은 순서로 강해진다:

의존 < 연관 < 집합 < 구성 < 상속

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://krjaeh0.gitbook.io/j-log/programming/software-design/uml-and-modeling/uml/umlrelationshipsoverview.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
