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
Get step-by-step solutions from verified subject matter experts
