3. Implement a class, Message, which represents an email message. A message has a recip- ient, a sender, and a message t
Posted: Fri May 20, 2022 3:28 pm
question. Implement the following methods • addMessage(message) • getMessage(index) • removeMessage (index)
3. Implement a class, Message, which represents an email message. A message has a recip- ient, a sender, and a message text. Provide a constructor: 1 def --init --(self, sender, recipient) Also, implement the following methods append(line) that appends a line of text to the message body .toString() that makes the message into one long string Write a program that uses this class to make a message and print it. 4. Implement a class, MailBox that stores e-mail messages, using the Message class from the previous