Zend Server Question:

Download Job Interview Questions and Answers PDF

How to write a program to show the instantiation of the window class?

Zend Interview Question
Zend Interview Question

Answer:

- The decorator is used to extend the functionality of the class that wraps up the structure.

- The decorator extends the class and its functionality by wrapping up in a defined pattern.

- The use of it allows the user to add or modify the existing behaviour of the API that is same.

- Decorators wrap other that identifies the original object and follows with the same API.

- The WindowDecorator is being created to display the window, by showing scrollbars, window title, etc;

$window = new WindowScrollbarDecorator(
new WindowTitleDecorator(
new WindowDecorator(
new Window()
)
)
);

Download Zend Interview Questions And Answers PDF

Previous QuestionNext Question
Can you explain why are in-built libraries used for the web services?Tell me what are the steps kept in mind while designing the Zend_Form?