Write C Class Named Cashregister Class Private Data Members Named Hundreds Tens Fives Sing Q43835492
Write a C++ class named CashRegister. The class shouldhave private data members named
Hundreds, Tens, Fives, and Singles all of type integer. The classshould have the following:
1. A member function named GetTotalCash to retrieve the total cashinside the cash
register.
2. Overload the + operator to allow adding two objects of typeCashRegister (note, add the
hundreds to the hundreds, tens to tens and so on).
3. Overload the > operator to compare between two CashRegistersobjects based on their
totalcash.
4. Overload the += operator.
Thank you
Expert Answer
Answer to Write a C++ class named CashRegister. The class should have private data members named Hundreds, Tens, Fives, and Single…
OR