Write java class named order that performs order processing


Problem

Code a JAVA class named Order that performs order processing of a single item. The class should have five fields or attributes: customer name, customer number, quantity ordered, and unit price.

Include setter and getter methods for each field (or attribute). The setter methods prompt the user for values of each field.

This class should also have a method to compute the total price (quantity times unit price); give it the name computePrice().

This class should also have a method to display the field values; give the name display().

Create a subclass and name it ShippedOrder. This subclass should override the computePrice() method by adding a shipping and handling charge of $36.00.

The main method should be in a class named UseOrder. Instantiate an object of the Order class; prompt the user for values for this Order object, and display the results. Also instantiate an object of the ShippedOrder class; prompt the user for values as well for this object, and display the results.

 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: Write java class named order that performs order processing
Reference No:- TGS03242062

Expected delivery within 24 Hours