3. Implement a class, Message, which represents an email message. A message has a recip- ient, a sender, and a message t
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
3. Implement a class, Message, which represents an email message. A message has a recip- ient, a sender, and a message t
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 question. Implement the following methods • addMessage(message) • getMessage(index) • removeMessage (index)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!