| 11 | Notification_Service.message_count += 1 |
| 12 | |
| 13 | class Email_Notification(Notification_Service): |
| 14 | |
| 15 | def __init__(self, priority, from_email): |
| 16 | super().__init__(priority) |
| 17 | self.from_email = from_email |
| 18 | |
| 19 | def send(self, to_email, message): |
| 20 | super().send(self.from_email, to_email, message) |
| 21 | print(f'sending Email from:{self.from_email} to:{to_email}') |
| 22 | print(f'priority: {self.priority} message: "{message}"') |
| 23 | |
| 24 | class SMS_Notification(Notification_Service): |
| 25 |