Create a class named sandwich. data fields include a string for the main ingredient (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. b. create an application named tests sandwich that instantiates one sandwich object and demonstrates the use of the set and get methods. save this application as test sandwich.java.

Solved
Show answers

Ask an AI advisor a question