All three Factory types do the same thing: They are a "smart constructor". Let's say you want to be able to create two kinds of Fruit: Apple and Orange.
確定! 回上一頁