Exercise 2. 4. 8: Greetings and Salutations5 points

Write a class called Salutations that prints various greetings and salutations.


The class should have one instance variable, a String called name to represent the person to whom the salutations are directed.


The class should have the following methods


A constructor that takes a String to initialize name with

public void addressLetter()

public void signLetter()

public void addressMemo()

public void signMemo()



addressLetter should print "Dear name", where name is replaced by the value of the instance variable name

signLetter() should print

"Sincerely,

name"

where name is replaced by the value of the instance variable name

addressMemo should print "To whom it may concern"

signMemo should print

"Best,

name

where name is replaced by the value of the instance variable name