인자에 따라 다른 거 리턴하는거니네 써봄?class factoryswitchcase areturn new a;case breturn new bcase creturn new c이거 안티패턴인가
원래 그리쓰는거 아님?
반환은 인터페이스를 해라