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

1 Expert Approved Answer
Step: 1 Unlock

public class TeeShirt private int orderNumber private String size private String color private doubl... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Java Programming Questions!