만세! 한국어 버전이 드디어 출시되었습니다! 피드백을 공유하거나 오류를 보고하려면 메시지를 보내주세요.

Inappropriate Intimacy

Signs and Symptoms

One class uses the internal fields and methods of another class.

Reasons for the Problem

Keep a close eye on classes that spend too much time together. Good classes should know as little about each other as possible. Such classes are easier to maintain and reuse.

Treatment

Payoff

  • Improves code organization.

  • Simplifies support and code reuse.