Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suggest an efficient design pattern for each of the design issues below and briefly explain how would you implement the suggested design pattern. 1 .
Suggest an efficient design pattern for each of the design issues below and briefly explain how would you implement the suggested design pattern. You are designing a library system and your design includes a class that represents the library inventory. You want to make sure that only a single instance of this inventory class is created. The library inventory class consists of books holds a list of book objects and you want the other modules in your system to be able to traverse the list of books without exposing the data structure of this class. You are designing an online system that offers multiple types of subscription modes such as free, pro and enterprise and your users change their subscription mode very frequently.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started