Question: Program 2 For this assignment you will submit three files: Sofa.java, SofaTest.java, and SofaUML.doc. You will write a Java class called Sofa. The Sofa class

Program 2 For this assignment you will submit three files: Sofa.java, SofaTest.java, and SofaUML.doc. You will write a Java class called Sofa. The Sofa class will have three private fields: double price; String material; String location; You must write two constructors for the class: Sofa(double pri, String mat, Strong loc) SofaO You must write get and set methods in the Sofa class for all private fields. You must write the SofaTest class to create a new Sofa, set each ivate field, then u System.out.println to show the value of each field using a get method. You must submit all three files for this
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
