Java Reference
In-Depth Information
Exercises
To extend your knowledge of the subjects covered today, try the following exercises:
1. Create a modified version of the Storefront project that includes a noDiscount
variable for each item. When this variable is true , sell the item at the retail price.
2. Create a ZipCode class that uses access control to ensure that its zipCode instance
variable always has a five- or nine-digit value.
Where applicable, exercise solutions are offered on the topic's website at http://www.
java21days.com.
6
 
Search WWH ::




Custom Search