Files
Design-Patterns/patterns/bridge/Bridge Example/Program.cs
2026-08-13 22:47:17 -04:00

18 lines
516 B
C#

namespace Bridge_Example;
internal class Program
{
private static void Main(string[] args)
{
Notification n1 = new AlertNotification(new EmailSender());
Notification n2 = new AlertNotification(new SmsSender());
Notification n3 = new ReminderNotification(new EmailSender());
Notification n4 = new ReminderNotification(new SmsSender());
n1.Notify("Server is down");
n2.Notify("Server is down");
n3.Notify("Meeting at 3pm");
n4.Notify("Meeting at 3pm");
}
}