Add code examples, and documentation
This commit is contained in:
14
patterns/bridge/Bridge Example/Notification.cs
Normal file
14
patterns/bridge/Bridge Example/Notification.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Bridge_Example;
|
||||
|
||||
//This is the abstraction
|
||||
public abstract class Notification
|
||||
{
|
||||
protected readonly IMessageSender _sender;
|
||||
|
||||
protected Notification(IMessageSender sender)
|
||||
{
|
||||
_sender = sender;
|
||||
}
|
||||
|
||||
public abstract void Notify(string message);
|
||||
}
|
||||
Reference in New Issue
Block a user