Swift Developer Question:

What is the Adapter and Memento Pattern?

Tweet Share WhatsApp

Answer:

Adapter – It lets the classes with incompatible interfaces to work together and it wraps itself around the object to expose a standard interface to interact with that object.

Memento – This pattern in iOS is used as a part of state restoration.

That is this externalized state can be restored without violating any encapsulation.This pattern is especially used for the archiving in Apple.

Download Swift Developer PDF Read All 39 Swift Developer Questions
Previous QuestionNext Question
Tell me what are the important data types found in Objective-C?Explain me some Common Execution States In Ios?