Question: Real cash registers can handle both bills and coins. Design a single class that expresses the commonality of these concepts. Redesign the CashRegister class and
Real cash registers can handle both bills and coins. Design a single class that expresses the commonality of these concepts. Redesign the CashRegister class and provide a method for entering payments that are described by your class. Your primary challenge is to come up with a good name for this class.
••
Step by Step Solution
3.41 Rating (154 Votes )
There are 3 Steps involved in it
The commonality between bills and coins is that they are both forms of currency Therefore a single c... View full answer
Get step-by-step solutions from verified subject matter experts
