Separation of Concerns:?
- The pattern separates the algorithm (e.g., calculating total with discounts)
from the objects on which it operates. This makes the object structure
(elements) cleaner, as they are not responsible for the business logic.
from the objects on which it operates. This makes the object structure
(elements) cleaner, as they are not responsible for the business logic.