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 class that inherits from your pizzaorder class

Create a class that inherits from your PizzaOrder class called SeatedPizzaOrder. SeatedPizzaOrder has the three data values that any PizzaOrder has (size, toppings, and price) but also has a tablenumber (of type integer) and serverName (of type st..

  You are to implement an intrusion detection system in java

you are to implement an intrusion detection system in java. we are assuming all activities are associated with the same

  Declare five integer numbers

Declare five integer numbers, Adds the five integers and store the results in variable sum and Calculate the average of the five numbers

  Write a java program that uses the elapsed time

Write a Java program that uses the elapsed time for an event in second and then outputs the elapsed time in hours, minutes and seconds. (For case, if the desired time is 9630 seconds, then the output is 2: 40: 30)

  Describe principles of data abstraction and inheritance

Study the principles of data abstraction, inheritance and dynamic binding. Use Library to get started on finding resources.You must take the terms and describe it.

  Java application modeled after the game of hangman

Creating a Java application modeled after the game of hangman, where a user must guess a hidden word or phrase in a limited number of guesses.

  Provide a java class named "input" containing method readint

Provide a Java class named "Input" containing the method "readInt" (prototype given below) that displays the prompt string, reads an integer, and tests whether it is between the supplied minimum and maximum. If not, it prints an error message and ..

  Create a class that holds the service description and price

Create a class that holds the service description, price, and number of minutes it takes to perform the service. Include a constructor that requires arguments for all three data fields.

  Part-2write a program that will perform some of the basic

part-2write a program that will perform some of the basic tasks accomplished by a file integrity checker such as

  Create a class with a method that accepts a charge card acnt

Create a class with a method that accepts a charge card account number as its argument. The method should determine whether the number is valid by comparing it with a list of valid charge card account numbers

  What wc produces on a linux system

Write a Java program (completely documented according to the class documentation guidelines, of course) named Prog3.java that counts lines, words, and bytes (characters) of text files.

  Write a class named retailitem that holds data

Write a class named RetailItem that holds data about an item in a retail store. The class should have the following member variables:description-a string that holds a brief description of the item.unitsOnHand-an int that holds the number of units cur..

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