Design a class message that models an email message a


Design a class Message that models an email message. A message has a recipient, a sender , and a message text. Support the following methods:

1) A constructor that takes the sender and recipient

2) A method append that appends a line of test to the message body

3) A method toString that makes the message into one long string like this: "From: Harry MorgannTo: RudoIf Reindeer/n....."

Write a program using this class to make a message and print it.

Solution Preview :

Prepared by a verified Expert
Basic Computer Science: Design a class message that models an email message a
Reference No:- TGS01677944

Now Priced at $15 (50% Discount)

Recommended (92%)

Rated (4.4/5)