Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 18:30, yeeet26
If an improvement creates no significant change in a product’s performance, then it is a(n) ? a0 design improvement. (there are no answer choices)
Answers: 1
image
Computers and Technology, 22.06.2019 19:10, hgdthbgjnb83661
What a backup plan that you have created in a event you encounter a situation
Answers: 2
image
Computers and Technology, 23.06.2019 02:30, bre563
Research data that is presented using descriptive language is said to be
Answers: 2
image
Computers and Technology, 23.06.2019 21:20, nathanfletcher
In microsoft word, when you highlight existing text you want to replace, you're in              a.  advanced mode.    b.  automatic mode.    c.  basic mode.    d.  typeover mode
Answers: 1
Do you know the correct answer?
Exercise 2.4.8: Greetings and Salutations5 points Write a class called Salutations that prints vari...

Questions in other subjects: