Build a Notification Dispatcher
Factory pattern
Challenge 1 of Create & Share ObjectsBeginner~55 minFree
Callers should say send this on email and never touch a class name. The Factory pattern puts that decision in one place. Build concrete notifiers, a simple factory function, a registry-driven factory you can extend without editing, then a service that dispatches and fans messages out across many channels at once.