16 lines
261 B
Python
16 lines
261 B
Python
|
from abc import abstractmethod
|
||
|
|
||
|
|
||
|
class MailingMethod:
|
||
|
@abstractmethod
|
||
|
def send(self): ...
|
||
|
|
||
|
class SMTPMAiling(MailingMethod):
|
||
|
|
||
|
def send(self):
|
||
|
return "SMTP"
|
||
|
|
||
|
class WhatsAppMailing(MailingMethod):
|
||
|
|
||
|
def send(self):
|
||
|
return "WhatsApp"
|