STRAGE Patterns [ STRAGE Patterns ] public interface FlyBehavior{public void fly();} public class FlyWithWings implements FlyBehavior{public void fly(){print("날고 있어!");}} public class FlyNoWay implements FlyBehavior{public void fly(){print("저는 날지 못해요 ㅜㅜ ")}} public class FlyRocketPowered implements FlyBehavior{public void fly(){print("로켓처럼 날아 갑니다!")}} * 인터페이스 구현 FlyWithWings , FlyNoWay , FlyRocketPowered * 인터페이.. 더보기 이전 1 다음