24 lines
506 B
Java
24 lines
506 B
Java
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;
|
|
}
|
|
}
|