오늘은 SOLID의 세 번째 원칙인 리스코프 치환 원칙(LSP)을 자세히 알아볼게요!1. 리스코프 치환 원칙이란? 💡핵심: "상위 타입의 객체를 하위 타입의 객체로 치환해도 프로그램의 정확성이 깨지지 않아야 한다"Bad Case: LSP 위반 사례// ❌ 이렇게 하면 안돼요!class Rectangle { protected int width; protected int height; public void setWidth(int width) { this.width = width; } public void setHeight(int height) { this.height = height; } public int getArea() { r..