How shanigarapusheshanth2007-wq/java-assignment works
This repository is a small Java shopping-domain example: product types carry catalog, pricing, and category-specific attributes; ProductServices maintains an in-memory product list and provides lookup and display operations; ShopingCart manages cart contents and computes a checkout total. The code shows no application entry point or external user interface, so the graph starts at the available domain components. Category classes and service/cart calls are supported by the excerpts; no order persistence or payment integration is shown.
Main entry points: Product.java Product Base · ProductServices.java Catalog Services · ShopingCart.java Cart and Checkout · ClothingProduct.java Clothing Products
Components 7
Product Catalog
- Product Base
Product.java - Catalog Services
ProductServices.java
Product Types
- Clothing Products
ClothingProduct.java - Electronic Products
ElectronicProduct.java - Grocery Products
GroceryProduct.java - Medicine Products
MedicineProduct.java
Shopping Cart
- Cart and Checkout
ShopingCart.java
Connections 8
- Product Base → Catalog Services: registers product
Product.java - Catalog Services → Product Base: manages products
ProductServices.java - Clothing Products → Product Base: extends
ClothingProduct.java - Electronic Products → Product Base: extends
ElectronicProduct.java - Grocery Products → Product Base: extends
GroceryProduct.java - Medicine Products → Product Base: extends
MedicineProduct.java - Cart and Checkout → Product Base: stores and prices
ShopingCart.java - Cart and Checkout → Catalog Services: displays details
ShopingCart.java