Question: Retail Item Class Modification (6th edition) page 440 #7 Modify this chapter's RetailItem class (which uses an inner class named CostData) to include accessor and
Retail Item Class Modification (6th edition)
page 440 #7
Modify this chapter's RetailItem class (which uses an inner class named CostData) to include accessor and mutator methods for getting an setting an item's wholsale and retail cost. Demonstrate the methods in the program.
This program must be written using this UML

This program must be written with a class and have two Java files that are named below.
RetailItem.java RetailItemDemo.java
Ouput must match the output in the picture below

Retailltem CostData description String itemNumber int cost CostData + wholesale double + retail: double + CostData(w double, Retailltem(desc : String, itemNum int, wholesale double, retail: double) r double) setWholesale(w double) void + setRetail(r double) void +getWholesale() double + getRetail(O double +toString0 String
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
