Question: Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class.
Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual line item of merchandise that a customer is purchasing. The Transaction class will combine several LineItem objects and calculate an overall total price for the line item within the transaction. There will also be two test classes, one for the LineItem class and one for the Transaction class
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
