Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is in java Create a class definition of your choosing. This class definition should be the most basic definition for the object that you

image text in transcribedimage text in transcribedThis is in java

Create a class definition of your choosing. This class definition should be the most basic definition for the object that you choose. For instance, should you choose a car, you would not create a "hybrid car class", because that is not the purest definition you could create for a car (i.e., there are cars that are not hybrid). Before you make the choice, think of all of the characteristics of the class [how does the entity look]. Also, how would the class behave [what actions can the entity take]. Once you have in mind the types of items that can be grouped together, then choose the highest level class or group. It is best to make a list of similar items In the header of your file containing your class definition, explain why you designed the class in your particular way (This need only be here for this first part of the project). Why did you choose the attributes (or why are they appropriate), the methods (behavior), and how the class might be useful for a user? Label the section Design:" Once you have this information, write the definition using proper formatting (Javadoc comments, setters, getters). Remember, every attribute that you would allow a user to set a value for should have a getter and a setter. You may also have a display method that allows the printing of all information in the object. Testing the class Once you have your class, you will write a test program (a main) to show that you are able to create viable objects [the instantiation of the class definition]. You should be able to set values for the attributes provided by a user and get the values from the object to display for the user [output should be formatted]. Given this, you are required to ask the user for data then store the data in the object you created. Also, you should display the information back to the user, once they are done answering your questions. You can do this by using your print method; however, to show you know how to use all methods in the class definition, you are also required to call the individual object methods to display information. For this part, you should think of how you would handle or store information for your class...especially as it grows in future parts. For instance, will you manage an inventory system based on your class? A parking system? A registry? Naming Requirements You should follow proper naming for your classes (the name makes sense for the definition, the first letter of the class name should be capitalized, etc.). Also, be sure to include the proper header for each file SO

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions