Question: In Java, Implement a program that tracks customers' purchases. Create the following classes. Use appropriate access modifiers (instance variables should be private!) and data types
In Java,

Implement a program that tracks customers' purchases. Create the following classes. Use appropriate access modifiers (instance variables should be private!) and data types for each. Do not forget to add getter and setter Item: This class has the attributes (member variables) called title, description, and price Book: This class inherits from Item. It has an instance variable called pageCount o o Movie: This class inherits from Item. It has an instance variable called ength CD: This class inherits from Item. It has an instance variable called trackCount. o ShoppingCart: This class keeps track of items that were bought. You may limit the number of items in the cart. The cart should have functions to add an item and print the items currently in the cart to the console. Customer: The customer class stores an id, the first name and the lastname and a pointer to a shopping cartobject. . Very important hint: Object oriented programing problem solving is very simple if you think of real things, we do every day. This project given as base to see how do you expand it (you will get credit on that). Let say you go to Target buy things. Target has Shopping Cart, Items, Customers, Cashiers, you pick up Shopping Cart and add item or remove an item. Item lnows its price and where was its location Shopping Cart Inows total amount of items. Make sure each class has method of toString0 also always have member That uniquely identifies that object Use comments to list your suggestion to improve this project
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
