Java programming
Implement a program that tracks customers’ purchases. Create thefollowing classes. Use appropriate access modifiers (instancevariables should be private) and data types for each. Don’t forgetto add getter and setter functions.
•Item
-This class has the attributes (member variables) called title,description, and price.
•Book
-This class inherits from Item. It has an instance variablecalled pageCount.
•Movie
-This class inherits from Item. It has an instance variablecalled length.
•CD
-This class inherits from Item. It has an instance variablecalled trackCount.
•ShoppingCart
-This class keeps track of items that were bought. You may limitthe number of items in the cart. The cart should have functions toadd an item and print the items
PayPal Gateway not configured
PayPal Gateway not configured