![subject](/tpl/images/cats/informatica.png)
Computers and Technology, 29.10.2020 19:10 SunsetPrincess
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
![ansver](/tpl/images/cats/User.png)
Answers: 1
![](/tpl/images/ask_question.png)
![](/tpl/images/ask_question_mob.png)
Other questions on the subject: Computers and Technology
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 13:30, ReaLily
1. technician a says horsepower information can be used by consumers to compare the power of different automobile engines. technician b says that manufacturers will often list the horsepower output of their engines in the online service information. who is right?
Answers: 2
![image](/tpl/images/cats/informatica.png)
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 22.06.2019 18:30, dpinzoner5952
Which of the following commands is more recommended while creating a bot?
Answers: 1
![image](/tpl/images/cats/informatica.png)
Computers and Technology, 23.06.2019 04:00, coolconnor1234p0sv4p
Another name for addicting games. com
Answers: 1
You know the right answer?
Exercise 2.4.8: Greetings and Salutations5 points
Write a class called Salutations that prints vari...
Questions in other subjects:
![Konu](/tpl/images/cats/istoriya.png)
History, 11.11.2020 05:00
![Konu](/tpl/images/cats/himiya.png)
![Konu](/tpl/images/cats/en.png)
English, 11.11.2020 05:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 11.11.2020 05:00
![Konu](/tpl/images/cats/en.png)
![Konu](/tpl/images/cats/informatica.png)
![Konu](/tpl/images/cats/biologiya.png)
Biology, 11.11.2020 05:00
![Konu](/tpl/images/cats/mat.png)
Mathematics, 11.11.2020 05:00
![Konu](/tpl/images/cats/istoriya.png)