☑Kizspy.me
Part 3: Design Pattern Identification and Analysis (2 points)
Read the explanation of a design pattern:
Here's how it works: imagine that you created an object, but after a while decided to create a
new one. Instead of receiving a fresh object, you'll get the one you already created.
Questions:
1. What design pattern is used in the code above? Identify its name and its pattern family
(creational, structural, or behavioral). (0.5 points)
2. Write the pseudo code for this pattern. (1 point)
3. Describe a practical situation in software development where this pattern would be
appropriate. (0.5 points)
Good luck with your exam!
Zoom
+100%
Close