Question OOP-ABS-0069
HardWhich is the best abstraction for code that must send notifications by email, SMS or push?
- A.
One class with a switch on a channel string
- B.
A Notifier interface with send(message), implemented once per channel
- C.
Sign up free to see the answer and a step-by-step explanation.