Create java class that represents your musical instrument

Assignment Help JAVA Programming
Reference no: EM131144549

Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 5 private data fields, getters and setters for each private data field, a toString() method, and three additional methods of your choice. Create a test class that constructs at least 5 of your musical instrument objects. For each of the objects constructed demonstrate the use of each of the methods. Be sure to use your IDE to accomplish this assignment. You can pick any instrument you want. When designing your class, think about what would make sense to describe and use the instrument. For example, if you selected a trumpet, you might need to provide the number of valves, the manufacturer, if the instrument is using a mute, the volume or even notes the trumpet is playing. Make this your own creation and have fun with it.

Reference no: EM131144549

Questions Cloud

Developing strategic supplier relationship : How does oue use vendor selection in developing strategic supplier relationship?
Compare triggers with constraints : What is the purpose of OLE DB, ODBC, JDBC, ADO, and ADO.NET? Is there any similarity between these? If yes, suggest a suitable name to group these. Provide reasons to support your answer.
Write text analysis assignment on effective writing : For the three "Text Analysis" assignments, you are to write a one page, two paragraph piece of writing where in one paragraph.
What are the themes of six sigma : What are the Themes of Six Sigma?
Create java class that represents your musical instrument : Create your own Java class that represents your favorite musical instrument. Your musical instrument class should have at least 3 constants, 5 private data fields, getters and setters for each private data field.
What is the percent sidelap for the data given in problems : Aerial photography was taken at a flying height H ft above average terrain. If the camera focal plane dimensions are 9× 9 in, the focal length is f and the spacing between adjacent flight lines is X ft, what is the percent sidelap for the data giv..
Determine the direct impact of marketing for the health care : Determine the direct impact of marketing for the health care provider you selected. Outline a strategy for the health care provider you selected to determine the utilization of its products or services.
How firms raise funds through the use of debt : Identify how firms raise funds through the use of debt, equity, and retained earnings - steadily making payments and has an excellent personal and business credit history.
Determine the flying height of camera at time of exposure : Using photo coordinates for points 4 and GYM on image 5, determine the flying height of the camera at the time of exposure.

Reviews

Write a Review

JAVA Programming Questions & Answers

  Create a test application that creates a controller object

Create a test application that creates a controller object and play the game! Experiment with changing the game parameters and observe how the game reacts

  Write a java gui application to calculate total resistance

Write a Java GUI application to calculate total resistance, current, and power in a circuit.

  Java final and finalize

Describe one situation in which you would want to mark a class final, and another in which you would want a final method but not a final class.

  Write a program that asks for the speed of a vehicle

Write a program that asks for the speed of a vehicle (in miles-per-hour) and the number of hours it has traveled.

  Initialize an array

Which will legally declare, construct, and initialize an array?

  Write and test a java program to read in multiple lines

A palindrome is defined as a string of 1 or more characters that contains a word, a phrase or a number that reads the same forward and backward, ignoring case, punctuation and white space.

  Bull write a blog article for a coding and technical

bull write a blog article for a coding and technical community blog.bull the length of the article is to be between 500

  Create the benefit class

create the Benefit class

  The federal acquisition regulation

According to the text, the Federal Acquisition Regulation (FAR) is a body of law that governs U.S. Federal Government's procurement process. The FAR is prepared, issued and maintained under the joint command of the Secretary of Defense, the Administr..

  Accepts a scanner representing an input file

Write a method in JAVA called stripHtmlTags that accepts a Scanner representing an input file containing an HTML web page as its parameter, then reads that file and prints the file's text with all HTML tags removed. A tag is any text between the c..

  Develop a queue class

Print-out of the text file that contains your restaurant information and develop a Queue class. Hint: Check out the sample Queue java source files included with this assignment. Declare a class Party to hold one party.

  Java program to compute invoice for client

You need a java program to compute the invoice for client and then print out invoice to the screen. The consulting rate is $200 per hour.

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