Multiple choice

Which of the following is a correct statement about 'Interpreter' design pattern?

  1. It represents and interprets the component behaviour.

  2. It encapsulates a request as an object.

  3. It avoids coupling the sender of a request to its receiver.

  4. It defines the creation of a class for which only a single instance can exist.

  5. It virtualises storage of entities in a persistent medium.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This pattern defines a representation along with an interpreter that uses the representation to interpret the behaviour of the components of the application.