Question: Base class needs the following fields/methods: 1.name of item 2.cost of item 3.a picture of the item 4.a sample of the sound associated with the
Base class needs the following fields/methods:
1.name of item
2.cost of item
3.a picture of the item
4.a sample of the sound associated with the item
-Logic to verify that the cost is greater than zero.If it isn't, display a message in a dialog box and set the cost to a default value
-Code a method that will display the name of the item on its image in the color and font size passed into the method as parameters
Use a subclass which has at least 2 fields that make it unique:
For each of these ADTs
a no-argument constructor
another constructor to set all the data of the class
all accessor and modifier methods
a toString method
These are the pictures I picked:




\f\f\f\f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
