/**
* Represents a single store item with details such as name, product number, price,
and quantity.
*
* Aksh Ladegaonkar
* APR 12, 2025
*/
public class Product1 {
private String name;
private int productNumber;
private double price;
private int quantity;
public Product1(String name, int productNumber, double price, int quantity) {
this.name = name;
this.productNumber = productNumber;
this.price = price;
this.quantity = quantity;
}
public String getName() {
return name;
}
public int getProductNumber() {
return productNumber;
}
public double getPrice() {
return price;
}
public int getQuantity() {
return quantity;
}
public String toString() {
return String.format("%-15s%-12d$%-12.2f%d", name, productNumber, price,
quantity);
}
}