Question: write down the best computer design pattern for the following question: Your company wants to control access to sensitive data in their database. They've decided
write down the best computer design pattern for the following question:

Your company wants to control access to sensitive data in their database. They've decided to build one single machine that sits in front of it that will control all access. They've asked you to build software to control access to the data. The pattern you choose for this design approach is 1. attern. 2. You've been asked to upgrade your asteroid game. Clients now want the ability to create to shapes with optional arguments. You realize this will require way too many c accomplish You also don't like having a great deal of logic in your constructor and requiring your users to provide 'fake' arguments for options they don't want. You decide you need future flexibility and ability to easily add options in the future. The give you the ability to provide multiple optional arguments at construction time without changing the external interfac pattern would e you provide to your clients. 3. You have built your application and realized that you have one set of data that everybody needs access to for the life of the application. You also realize you don't like all the classes dependent on the class that contains the object. You decide to use the you can provide one shared instance of the object for the entire application. attern SO You company needs an organization chart. The want to be able to pick anybody in the organization and see N amount of levels of reports beneath them. The want you to build this quickly. You remember that the good choice for this. 4. pattern would be a very 5. You've built a multi-threaded application but it keeps crashing due to concurrency issues The code holds multiple references to one object and these threads keep stepping on each other. You need to fix this ASAP. You pick the you remember it is an inherently thread safe pattern that will require no synchronization mechanisms and that it guarantees that an object will never change after it is created. pattern because 6. You've built a nearly perfect trading application However, the market is complex and you realize that the one algorithm you spread across the code cannot handle market changes. You know you need to provide many algorithms depending on market conditions. You decide it's time to encapsulate all these algorithms. The to use to encapsulate these algorithms pattern would be the best pattern
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
