Page 1 of 1

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
by answerhappygod
3 Implement A Class Message Which Represents An Email Message A Message Has A Recip Ient A Sender And A Message T 1
3 Implement A Class Message Which Represents An Email Message A Message Has A Recip Ient A Sender And A Message T 1 (54.5 KiB) Viewed 22 times
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)