Winterdress and use the default constructor

Assignment Help Basic Computer Science
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);

Reference no: EM132329293

Questions Cloud

Determined whether or not the sum is odd or even : If possible I'd also like to reprint all the digits the user inputted after it was determined whether or not the sum is odd or even.
Factors that can make software risk management difficult : This characteristic Is related to which one of the following unique factors that can make software risk management difficult?
Appropriate cardinalities and all the applicable constraints : Draw an E-R diagram for the given description. Show appropriate cardinalities and all the applicable constraints.
Security management frameworks : Evaluate and compare information security management frameworks ISO 27000 Series and CMMI
Winterdress and use the default constructor : 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
Research in a career such as cybersecurity : What type of sources will work best for research in a career such as Cybersecurity?
List of files and subdirectories in a directory : What CLI command can be used to display a list of files and subdirectories in a directory?
What are the essential features of a typical hybrid : What are the essential features of a typical hybrid network architecture design?
Key components of a typical p2p application : "What are the key components of a typical P2P application? Describe their functions.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  What are some other programming languages

What are some other programming languages besides C++? How do they compare to C++?

  Relating to the bandwidth between am and fm

A technical explanation as to why AM radio stations are much more susceptible to noise and interference compared to FM radio stations due to the difference

  Why random access file instead of a sequential access file

Write a 200- to 300-word response to the following question: In which situations would you choose to use a direct access or random access file instead of a sequential access file? Give a specific example and explain your reasoning.

  Understand and difficult to relate to the real world

How is division of labor difficult to understand and difficult to relate to the real world.

  Explain how you could make a profit from this situation

Explain how you could make a profit from this situation. What would be your profit from this situation. What would be your profit per bushel of wheat?

  Metric conversion application

(Metric Conversion Application ) Write an application that will assist the user with metric conversions. Your application should allow the user to specify the names of the units as strings(i.e., centimeters, liters, grams, and so on, for the metri..

  Range of radio frequencies in wireless technologies

What is the range of radio frequencies in wireless technologies; and what are the pros and cons of the lowest and highest frequencies?

  Important to an information security program

Explain why the principle of defense in depth is so important to an information security program.

  Create using swing and netbeans

Explain an applet you would like to develop and describe what kind of GUIs you would create using Swing and Netbeans.

  Technological instructional methods

What are some barriers to using technological instructional methods in an asynchronous learning environment?

  Describe an actuator that could accept an electrical input

Each of the variables listed in Problem 1.7 can be brought under feedback control. Describe an actuator that could accept an electrical input and be used to control the variables listed. Give the units of the actuator output signal.

  What are the consequences of not applying principle at all

What are the consequences of not applying the principle at all? In particular, what is the maximal set of rights that subjects within the system can acquire (possibly with the cooperation of other subjects)?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd