Multiple choice

Which of the following is an incorrect statement about 'Memento' design pattern in .NET?

  1. It captures and externalises an object's internal state, so that the object can be restored to this state later.

  2. It protects against access of objects by other than the originator.

  3. It defines an object that encapsulates how a set of objects interact.

  4. The internal state of the memento is accessible by the originator only.

  5. It never operates on or examines the contents of a memento.

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

It does not encapsulate the set of objects. Mediator pattern is used for that.