Add code examples, and documentation

This commit is contained in:
Aaron Po
2026-08-12 00:03:32 -04:00
commit 77c16e69f6
79 changed files with 4458 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace Bridge_Example;
//This is one of the refined abstraction classes. Note that it can make use of _sender since it inherits it from its superclass. Note also that since EmailSender and SmsSender implement IMessageSender, their specific SendMessage() method will be called, depending on what's passed into the constructor (see the main method)
public class ReminderNotification : Notification
{
public ReminderNotification(IMessageSender sender)
: base(sender) { }
public override void Notify(string message)
{
_sender.SendMessage($"Reminder: {message}");
}
}