디자인 패턴Factory Pattern: 객체 생성을 추상화하여, 유연성을 높이는 패턴.Strategy Pattern: 알고리즘을 캡슐화하여, 동적으로 교체할 수 있도록 하는 패턴.Singleton Pattern: 특정 클래스의 instance가 단 하나만 생성되도록 보장하는 패턴.Prototype Pattern: 새로운 객체를 생성할 때, 기존 객체를 복제하여 사용하는 방식으로 동작하는 패턴.Factory Pattern 예시 코드더보기 1. interface 생성public interface Shape { void draw();} 2. interface를 구현한 클래스 생성public class Rectangle implements Shape { @Override public void ..