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 writefour java files, Message.java, MessageTester.java, Mailbox.java and MailboxTester.java, Stage 1: In thefirst file Message.java, create a class named Message that models an emailmessage. It should contain the following: Private instance variables sender, recipient, and

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!