Question 10
You are working on an e-commerce platform where a buyer places an order. Once the order is placed, multiple steps need to be performed in sequence, such as:
1. Creating the order in the system 2. Notifying the seller 3. Preparing the package 4. Sending the order for delivery
Currently, these steps require the client code to interact with multiple different classes and execute methods in the correct order, making the system complex and hard to manage. You want to simplify this process by providing a unified interface that hides these complexities from the client.
Which design pattern would best address this requirement?
Facade Pattern
Adapter Pattern
Observer Pattern
Strategy Pattern