Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Memento Design Pattern Tutorial

Derek Banas via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn about the Memento design pattern in this 21-minute tutorial video. Discover how to easily store previous states of an object using three main classes: Memento, Originator, and Caretaker. Explore the implementation details, including how the Originator sets and gets values from the current Memento, creates new Mementos, and assigns current values to them. Understand the role of the Caretaker in holding an ArrayList of previous Memento versions for storage and retrieval. Access the provided code to enhance your understanding of this useful design pattern.

Syllabus

Memento Design Pattern

Taught by

Derek Banas

Reviews

Start your review of Memento Design Pattern Tutorial

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.