- Create
object references to objects of type Order
and of type Shirt. The Order class ( Order.java ) and the Shirt class ( Shirt.java ) are provided in the
exercise directory for this module. You should view these files and
familiarize yourself with them.
- Set the
prices for the Shirt object
to 14.00
- Invoke
the addShirt method to add
the shirt to the order. The documentation for the addShirt method is as follows:
public double addShirt
(Shirt s)
Adds a shirt to a list of shirts in an order.
Parameters:
s- An object
reference to a shirt object
Returns:
A total current amount for the order.
- Display
the return order amount. For example:
Total amount for the order
is: 14.00