並且將相關建立的資訊隱藏起來,並使得物件的初始化盡可能的與平台(系統)或其他物件組成關係為低相依性
(其實這邊是要講system independent)
- Class creational patterns focus on the use of inheritance to decide the object to be instantiated --> Factory Method
- Object creational patterns focus on the delegation of the instantiation to another object --> Abstract Factory
沒有留言:
張貼留言