인자에 따라 다른 거 리턴하는거


니네 써봄?


class factory

switch

case a

return new a;


case b

return new b


case c

return new c


이거 안티패턴인가