From 908c9cb3f1f1e2b5e56a4a1da54043ef4a7e30e6 Mon Sep 17 00:00:00 2001 From: Mehrdad Shirvani Date: Thu, 14 May 2026 15:55:56 +0330 Subject: [PATCH] feat: add Product.java --- src/main/java/Product.java | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 src/main/java/Product.java diff --git a/src/main/java/Product.java b/src/main/java/Product.java new file mode 100644 index 0000000..dfc6aee --- /dev/null +++ b/src/main/java/Product.java @@ -0,0 +1,23 @@ +public class Product { + private final int productID; + private final String productName; + private final double price; + + public Product(int productID, String productName, double price) { + this.productID = productID; + this.productName = productName; + this.price = price; + } + + public int getProductID() { + return productID; + } + + public String getProductName() { + return productName; + } + + public double getPrice() { + return price; + } +}