Question: Enhance the CashRegister class so that it counts the purchased items. Provide a get ItemCount method that returns the count.
Enhance the CashRegister class so that it counts the purchased items. Provide a get ItemCount method that returns the count.
Step by Step Solution
3.58 Rating (158 Votes )
There are 3 Steps involved in it
Sure I think you are asking to add an itemCount field to the CashRegister class and update it each t... View full answer
Get step-by-step solutions from verified subject matter experts
