Question OOP-SOLID-0009
MediumAdding a new payment type requires editing a big if-else chain in PaymentProcessor. Which principle is being violated?
- A.
DRY
- B.
Single Responsibility only
- C.
Sign up free to see the answer and a step-by-step explanation.