Reference no: EM132329293
These were my objectives:
1. The first object should be named winterDress and use the default constructor. 2. The second object should be named springDress and use the second constructor to initialize the style to "lace", the color to "green", and the size to 12. Include the following instructions in the main() method, in the order specified below
2. A call to set the color of the winterDress to "yellow".
3. A call to set the style of the winterDress" to "sweater".
4. A call to set the size of the winterDress to 6.
5. A Statement that displays the style of the springDress, using the appropriate method call.
6. A call to change the color of the winterDress to "green".
7. A statement that displays the style of the winterDress, using the appropriate method call.
8. A call for the winterDress object to the method that displays all the information about the dress.
//Dress winterDress = new Dress();
//Dress spingDress = new Dress();
//A call to set the color of the winterDress to "yellow".
winterDress.setColor("yellow");
//A call to set the style of the winterDress to "sweater".
winterDress.setStyle("sweater");
//A call to set the size of the winterDress to 6.
winterDress.setSize(6);
Dress springDress = new Dress("lace", "green", 12);
//A Statement that displays the style of the springDress, using the appropriate method call.
System.out.println(springDress.getStyle(),
// A call to change the color of the winterDress to "green".
winterDress.setColor("green");
//A statement that displays the style of the winterDress, using the appropriate method call.
System.out.println(winterDress.getStyle);
//A call for the winterDress object to the method that displays all the information about the dress.
Call winterDress(winterDress);