Question: Design Patterns 2 Suppose you are running a door - making broker business. You don t create the doors on your own, rather delegate the
Design Patterns
Suppose you are running a doormaking broker business. You dont create the doors on your own, rather delegate the task of door creation to the appropriate doormaker after taking the door requirements from your clients. Based on the clients needs, pass their requirements to the appropriate doormaker to make the requested door. For example, if the requirement calls for a steel door, the final output will be a steel door object. Similarly, if the client calls for a wooden door, you would give the door to the wooden doormaker to make the door. After the doormaker has created and provided you the desired door, you would then pass the created door back to your client. The user is not concerned with the door creation mechanism, but rather, the user merely delegates the system to produce the final door object as per the users requirement. Which design pattern should be used to produce such door objects?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
