nerdexam
Zend

200-530 · Question #243

200-530 Question #243: Real Exam Question with Answer & Explanation

The correct answer is B. Factory. See the full explanation below for the reasoning.

Question

You are creating an application that generates invoices in a variety of formats, including PDF, ODS and HTML. Each of these formats is represented as a PHP class in your application. While some of the operations can be performed on all of the different formats (such as saving and loading), other operations may be specific to one or two of the formats (such as setting as read only). Which design pattern should you use for this application?

Options

  • AAdapter
  • BFactory
  • CMVC
  • DSingleton

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice
You are creating an application that generates invoices in a... | 200-530 Q#243 Answer | NerdExam