SlideShare a Scribd company logo
c++
The following questions are about the Memento design pattern. 6.1 Both Serializer and Memento
design patterns save states of objects and can be used to provide a roll-back facility. When would
you use Memento instead of Serializer? 6.2 What objects does Caretaker hold? 6.3 Why is
originator a friend of Memento? (2) 6.4 Assume that a state of originator is saved at some stage
using the Memento design pattern. State the sequence of actions required to roll back to the
saved state of originator. (4)

More Related Content

More from NIRMALJAI08

Caitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdfCaitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdf
NIRMALJAI08
 
C-CB+2A.pdf
C-CB+2A.pdfC-CB+2A.pdf
C-CB+2A.pdf
NIRMALJAI08
 
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdfc- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
NIRMALJAI08
 
C- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdfC- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdf
NIRMALJAI08
 
c- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdfc- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdf
NIRMALJAI08
 
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdfC- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
NIRMALJAI08
 
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdfC- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
NIRMALJAI08
 
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdfc) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
NIRMALJAI08
 
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdfc- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
NIRMALJAI08
 
C- elegans are one of the most common model organisms in biology- C-.pdf
C- elegans are one of the most common model organisms in biology-  C-.pdfC- elegans are one of the most common model organisms in biology-  C-.pdf
C- elegans are one of the most common model organisms in biology- C-.pdf
NIRMALJAI08
 
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdfC and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
NIRMALJAI08
 
C++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdf
C++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdfC++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdf
C++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdf
NIRMALJAI08
 
C++ Deviation from Average (Recursion) Instructions Step 1- Write a.pdf
C++ Deviation from Average (Recursion)   Instructions Step 1- Write a.pdfC++ Deviation from Average (Recursion)   Instructions Step 1- Write a.pdf
C++ Deviation from Average (Recursion) Instructions Step 1- Write a.pdf
NIRMALJAI08
 
C++ Data Structures and Algorithms Part 1- -- Write a program to dem.pdf
C++ Data Structures and Algorithms   Part 1- -- Write a program to dem.pdfC++ Data Structures and Algorithms   Part 1- -- Write a program to dem.pdf
C++ Data Structures and Algorithms Part 1- -- Write a program to dem.pdf
NIRMALJAI08
 
C) Which number identifies the region responsible for understanding sp.pdf
C) Which number identifies the region responsible for understanding sp.pdfC) Which number identifies the region responsible for understanding sp.pdf
C) Which number identifies the region responsible for understanding sp.pdf
NIRMALJAI08
 
c) Every week a family visits their favourite restaurant- The restaura.pdf
c) Every week a family visits their favourite restaurant- The restaura.pdfc) Every week a family visits their favourite restaurant- The restaura.pdf
c) Every week a family visits their favourite restaurant- The restaura.pdf
NIRMALJAI08
 
C programming Create a program to find the largest element of an arr.pdf
C programming   Create a program to find the largest element of an arr.pdfC programming   Create a program to find the largest element of an arr.pdf
C programming Create a program to find the largest element of an arr.pdf
NIRMALJAI08
 
C programing 1- What is the type of the formal parameters in the foll.pdf
C programing  1- What is the type of the formal parameters in the foll.pdfC programing  1- What is the type of the formal parameters in the foll.pdf
C programing 1- What is the type of the formal parameters in the foll.pdf
NIRMALJAI08
 
C program Write a loop that will prompt the user to enter characters.pdf
C program  Write a loop that will prompt the user to enter characters.pdfC program  Write a loop that will prompt the user to enter characters.pdf
C program Write a loop that will prompt the user to enter characters.pdf
NIRMALJAI08
 
BYou are studying a gene in C- elegans that on Chromosome III and is h.pdf
BYou are studying a gene in C- elegans that on Chromosome III and is h.pdfBYou are studying a gene in C- elegans that on Chromosome III and is h.pdf
BYou are studying a gene in C- elegans that on Chromosome III and is h.pdf
NIRMALJAI08
 

More from NIRMALJAI08 (20)

Caitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdfCaitlyn Communications reported the following figures from its adjuste.pdf
Caitlyn Communications reported the following figures from its adjuste.pdf
 
C-CB+2A.pdf
C-CB+2A.pdfC-CB+2A.pdf
C-CB+2A.pdf
 
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdfc- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
c- What is the probability that Z is between 1-51 and 1-81- The probab.pdf
 
C- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdfC- Vitamin D is required for the absorption and deposition of calcium.pdf
C- Vitamin D is required for the absorption and deposition of calcium.pdf
 
c- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdfc- The login program will disallow logins of any students who enter th.pdf
c- The login program will disallow logins of any students who enter th.pdf
 
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdfC- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
C- Quantity Theory of Money In the country of Wiknam- assume that V is.pdf
 
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdfC- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
C- Picea mariana (black spruce) atsk This specimen was collected trom.pdf
 
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdfc) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
c) Lefp and q be the pixels at coordinates (10-15) and (15-25) respect.pdf
 
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdfc- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
c- Identify a paraphyletic group in this phylogenetic tree and explain.pdf
 
C- elegans are one of the most common model organisms in biology- C-.pdf
C- elegans are one of the most common model organisms in biology-  C-.pdfC- elegans are one of the most common model organisms in biology-  C-.pdf
C- elegans are one of the most common model organisms in biology- C-.pdf
 
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdfC and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
C and D are events with probabilities P(C)-0-15-P(D)-0-3- and P(C UD)-.pdf
 
C++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdf
C++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdfC++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdf
C++ Merge(numbers- 0-2-5) is called- Complete the table for leftPos an.pdf
 
C++ Deviation from Average (Recursion) Instructions Step 1- Write a.pdf
C++ Deviation from Average (Recursion)   Instructions Step 1- Write a.pdfC++ Deviation from Average (Recursion)   Instructions Step 1- Write a.pdf
C++ Deviation from Average (Recursion) Instructions Step 1- Write a.pdf
 
C++ Data Structures and Algorithms Part 1- -- Write a program to dem.pdf
C++ Data Structures and Algorithms   Part 1- -- Write a program to dem.pdfC++ Data Structures and Algorithms   Part 1- -- Write a program to dem.pdf
C++ Data Structures and Algorithms Part 1- -- Write a program to dem.pdf
 
C) Which number identifies the region responsible for understanding sp.pdf
C) Which number identifies the region responsible for understanding sp.pdfC) Which number identifies the region responsible for understanding sp.pdf
C) Which number identifies the region responsible for understanding sp.pdf
 
c) Every week a family visits their favourite restaurant- The restaura.pdf
c) Every week a family visits their favourite restaurant- The restaura.pdfc) Every week a family visits their favourite restaurant- The restaura.pdf
c) Every week a family visits their favourite restaurant- The restaura.pdf
 
C programming Create a program to find the largest element of an arr.pdf
C programming   Create a program to find the largest element of an arr.pdfC programming   Create a program to find the largest element of an arr.pdf
C programming Create a program to find the largest element of an arr.pdf
 
C programing 1- What is the type of the formal parameters in the foll.pdf
C programing  1- What is the type of the formal parameters in the foll.pdfC programing  1- What is the type of the formal parameters in the foll.pdf
C programing 1- What is the type of the formal parameters in the foll.pdf
 
C program Write a loop that will prompt the user to enter characters.pdf
C program  Write a loop that will prompt the user to enter characters.pdfC program  Write a loop that will prompt the user to enter characters.pdf
C program Write a loop that will prompt the user to enter characters.pdf
 
BYou are studying a gene in C- elegans that on Chromosome III and is h.pdf
BYou are studying a gene in C- elegans that on Chromosome III and is h.pdfBYou are studying a gene in C- elegans that on Chromosome III and is h.pdf
BYou are studying a gene in C- elegans that on Chromosome III and is h.pdf
 

Recently uploaded

MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
bennyroshan06
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
PedroFerreira53928
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
Vivekanand Anglo Vedic Academy
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
Vikramjit Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 

Recently uploaded (20)

MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
PART A. Introduction to Costumer Service
PART A. Introduction to Costumer ServicePART A. Introduction to Costumer Service
PART A. Introduction to Costumer Service
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Sectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdfSectors of the Indian Economy - Class 10 Study Notes pdf
Sectors of the Indian Economy - Class 10 Study Notes pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Digital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and ResearchDigital Tools and AI for Teaching Learning and Research
Digital Tools and AI for Teaching Learning and Research
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 

c++ The following questions are about the Memento design pattern- 6-1.pdf

  • 1. c++ The following questions are about the Memento design pattern. 6.1 Both Serializer and Memento design patterns save states of objects and can be used to provide a roll-back facility. When would you use Memento instead of Serializer? 6.2 What objects does Caretaker hold? 6.3 Why is originator a friend of Memento? (2) 6.4 Assume that a state of originator is saved at some stage using the Memento design pattern. State the sequence of actions required to roll back to the saved state of originator. (4)