MCPcopy Create free account
hub / github.com/InterviewReady/Low-Level-Design / Product

Class Product

InventorySystem.java:74–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72}
73
74class Product {
75 String id;
76 Double price;
77 String description;
78 double weight;
79 Size size;
80
81 public Product(String id, Double price, String description, double weight, Size size) {
82 this.id = id;
83 this.price = price;
84 this.description = description;
85 this.weight = weight;
86 this.size = size;
87 }
88}
89
90enum Size {
91 S,M,L

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected