Write a method for the Invitation class that will accept the name of a person who will be invited as a string parameter and return a string consisting of the name of the person being invited along with name of the host and location of the event.
For example, if the host name is “Karen”, the party location is “1234 Walnut Street”, and the person invited is “Cheryl”, the method should return a string in the following format.
Dear Cheryl, attend my event at 1234 Walnut Street. See you
then, Karen.
Write the method below. Your implementation must conform to the example above.
The correct answer has not yet been found for the question. Our moderators are looking for the most suitable solutions for you. Could you share your comments with us for the answer to this question?