Question: Create a TeeShirt class for Tobys Tee Shirt Company. Fields include an order number, size, color, and price. Create set methods for the order number,
Create a TeeShirt class for Toby’s Tee Shirt Company. Fields include an order number, size, color, and price. Create set methods for the order number, size, and color and get methods for all four fields. The price is determined by the size: $22.99 for XXL or XXXL, and $19.99 for all other sizes. Create a subclass named CustomTee that descends from TeeShirt and includes a field to hold the slogan requested for the shirt, and include get and set methods this field. Write an application that creates two objects of each class, and demonstrate that all the methods work correctly.
Save the files as TeeShirt.java, CustomTee.java, and DemoTees.java.
Step by Step Solution
3.44 Rating (186 Votes )
There are 3 Steps involved in it
public class TeeShirt private int orderNumber private String size private String color private doubl... View full answer
Get step-by-step solutions from verified subject matter experts
