Gof/FactoryMethod . . . . 3 matches
Parameterized factory method는 Product를 상속받은 MyProduct와 YourProduct상에서일반적으로 다음과 같은 형태를 가진다.
if (id == YOURS) return new YourProduct;
if (id == MINE) return new YourProduct;
Found 1 matching page out of 7555 total pages (5000 pages are searched)