Question: using design patterns in jav a A paper company currently accepts online orders for three types of printer papers: LetterOrder, A4Order, and B4Order. Customers call

using design patterns in java A paper company currently accepts online orders for three types of printer papers: LetterOrder, A4Order, and B4Order. Customers call a method PaperOrderIF orderPaper(String type) to order a desired type of paper product. The paper company has the plan to produce more paper types in the future so the design should be flexible enough for such a future change. What design pattern you would choose to create objects of more paper types without causing code changes in client?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!