When to use Simple Factory Design Pattern?
=> When we create similar objects but the creation process is slightly different. e.g.: DeliveryOrder, TakeOutOrder, DineInOrder, etc.
a. Object Adapter Design Pattern
b. Class Adapter Design Pattern
When to use Simple Factory Design Pattern?
=> When we create similar objects but the creation process is slightly different. e.g.: DeliveryOrder, TakeOutOrder, DineInOrder, etc.
a. Object Adapter Design Pattern
b. Class Adapter Design Pattern