There are different types of transaction at a store: Returns, cash purchases, credit card purchases, and gift card purch
Posted: Sat May 14, 2022 3:55 pm
There are different types of transaction at a store: Returns, cash purchases, credit card purchases, and gift card purchases all constitute transactions but only the purchases constitute sales. For all sales, one should be able to calculate the respective tax; for credit card purchases one should be able to calculate the credit card processing fees. Draw a UML class diagram showing an inheritance hierarchy of the classes that represent the different types of transactions. Show appropriate attributes and method names for at least two of the classes.