Question: 1 Description of the Program In this assignment, you will write four java files, Message.java, MessageTester.java, Mailbox.java and MailboxTester.java, Stage 1: In the first file




1 Description of the Program In this assignment, you will write four java files, Message.java, MessageTester.java, Mailbox.java and MailboxTester.java, Stage 1: In the first file Message.java, create a class named Message that models an email message. It should contain the following: Private instance variables sender, recipient, and messagetext A default constructor that takes no inputs (set all members to an empty string); A constructor takes all three inputs (sender, recipient and messagetext) Three getter methods to return each of three instance variables (accessor); Three setter methods to change each of three instance variables (mutator); . A method toString that makes the message into one long string like this: From: Harry Morgan To: Rudolf Reindeer This is my message
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
