What are adapter and memento patterns?



What are adapter and memento patterns?..

Answer / Anshu Singh

"Adapter pattern is used to make existing classes work with others by converting the interface of an object into another one that clients expect. Memento pattern is a behavioral design pattern that enables encapsulating an object's internal state so it can be saved and restored later without violating its encapsulation."n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Swift Interview Questions

What is swift stand for?

1 Answers  


What is closure in swift?

1 Answers  


In swift what is use of backticks while declaring a variable?

1 Answers  


What are the two main integer types in swift?

1 Answers  


What is differences in swift 1.x, 2.x, 3.x, 4.x?

1 Answers  


What is static in swift?

1 Answers  


What is encapsulation in swift?

1 Answers  


What is cocoa swift?

1 Answers  


What is the difference between swift and ‘objective-c’ language?

1 Answers  


What are the best ways of achieving concurrency in ios?

1 Answers  


Can you explain any three-shift pattern matching techniques?

1 Answers  


How would you define variables and constants in swift programming language?

1 Answers  


Categories