HKHair77.hashnode.dev·Aug 13, 2024템플릿 메소드 패턴이 뭔데?1. 템플릿 메소드 패턴이란? 🤔 템플릿 메소드 패턴은 상위 클래스에서 알고리즘의 구조를 정의하고, 하위 클래스에서 그 구조의 세부 단계를 구현하는 디자인 패턴이다. 이 패턴을 사용하면 코드 재사용성이 높아지고, 알고리즘의 공통적인 부분과 각 단계별 세부 사항을 분리할 수 있다. 2. 예시 ⚽️ 농구와 축구의 예시로 알아보자 두 종목은 공통적으로 심판에 의해 경기가 시작하고 어떠한 규칙에 의해서 게임이 진행되고 끝나면서 점수에 의해 승...design patternsAdd a thoughtful commentNo comments yetBe the first to start the conversation.