subject

Create a class named sandwich. data fields include a string for the main ingredients(such as "tuna"), a string for bread type(such as "wheat") and a double for price(such as "4.99"). include methods to get and set values for each of these fields. save the class as sandwich. java.

part 2

create an application named testsandwich that instantiates one sandwich object and demonstrates the use of the set and get methods. save this application as testsandwich. java

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:30
Dave has to create animations for a game. which tool can dave use?
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Martha is a healer, a healthcare provider, and an experienced nurse. she wants to share her daily experiences, as well as her 12 years of work knowledge, with people who may be interested in health and healing. which mode of internet communication can martha use?
Answers: 3
question
Computers and Technology, 23.06.2019 17:00
What does the faves button do? a. users mark a web page as a favorite b. leads other readers to favor a specific page c. readers sort and align their favicons, or favorite icons d. leads users to a message board where they can post questions
Answers: 1
question
Computers and Technology, 24.06.2019 07:00
Selective is defined as paying attention to messages that are consistent with one’s attitudes and beliefs and ignoring messages that are inconsistent.
Answers: 1
You know the right answer?
Create a class named sandwich. data fields include a string for the main ingredients(such as "tuna")...
Questions
question
Business, 04.12.2019 20:31
Questions on the website: 13722361