---
title: "Discussion on \"Dependency Injection\" | Hashnode"
description: "Discussion on \"Dependency Injection\". 먼저 Dependency(의존 관계)란 무엇이고 어떤 문제가 있을까?\n\n클래스 A가 다른 클래스 (혹은 인터페이스) B를 사용할 때 A는 B에 의존한다고 이야기 한다. 즉, 한 객체의 코드에서 다른 객체를 생성하거나 다른 객체의 메서드를 호출할 때, 그리고 파라미터로 객체를 전달받아 사용할 때 의존성이 발생한다고 할 수 있다.\n\nA가 B에 의존중 일때, B의 변경은 A에게 영향을 끼친다. 즉, B의 변경이 A의 변경을 초래할 가능성이 존재한다...."
url: "https://hashnode.com/posts/dependency-injection/64fee0054bdc264f94395f6d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Dependency Injection](https://ybe-teamcook7.hashnode.dev/dependency-injection?utm_source=hashnode&utm_medium=feed)

먼저 Dependency(의존 관계)란 무엇이고 어떤 문제가 있을까? 클래스 A가 다른 클래스 (혹은 인터페이스) B를 사용할 때 A는 B에 의존한다고 이야기 한다. 즉, 한 객체의 코드에서 다른 객체를 생성하거나 다른 객체의 메서드를 호출할 때, 그리고 파라미터로 객체를 전달받아 사용할 때 의존성이 발생한다고 할 수 있다. A가 B에 의존중 일때, B의 변경은 A에게 영향을 끼친다. 즉, B의 변경이 A의 변경을 초래할 가능성이 존재한다....

Sep 11, 2023 · 1 min read · ybe-teamcook7.hashnode.dev  
Read the article

## Written by

[Yonghyun Hong](https://hashnode.com/@HongYonghyun)

@HongYonghyun

  
[View profile](https://hashnode.com/@HongYonghyun)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
