4. [개방폐쇄원칙] 메시지 알림 관리
실습과제 안드로이드 앱 개발자 영훈이는 스마트폰에서 메시지 알림 기능을 담당하는 클래스를 만들려고 한다. 아래와 같은 클래스 두 개를 정의했다. 메시지 알림 관리(MessageNotificationManager) 클래스 class MessageNotificationManager: """메시지 알림 관리 클래스""" def __init__(self): self.message_notifications = [] def add_new_message(self, new_message): """새로 온 메시지 추가""" self.message_notifications.append(new_message) def display_message_notifications(self): """모든
NULL
2021-10-17
0 0