Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.math.BigDecimal;
- import java.util.Date;
- public class Product {
- private String name;
- private Date date;
- private int quantity;
- private BigDecimal price;
- private Manufacturer manufacturer;
- public Product(String name, Date date, int quantity, BigDecimal price, Manufacturer manufacturer) {
- super();
- this.name = name;
- this.date = date;
- this.quantity = quantity;
- this.price = price;
- this.manufacturer = manufacturer;
- }
- public String getName() {
- return name;
- }
- public void setName(String name) {
- this.name = name;
- }
- public Date getDate() {
- return date;
- }
- public void setDate(Date date) {
- this.date = date;
- }
- public int getQuantity() {
- return quantity;
- }
- public void setQuantity(int quantity) {
- this.quantity = quantity;
- }
- public BigDecimal getPrice() {
- return price;
- }
- public void setPrice(BigDecimal price) {
- this.price = price;
- }
- public Manufacturer getManufacturer() {
- return manufacturer;
- }
- public void setManufacturer(Manufacturer manufacturer) {
- this.manufacturer = manufacturer;
- }
- @Override
- public String toString() {
- return "Product [name=" + name + ", date=" + date + ", quantity=" + quantity + ", price=" + price
- + ", manufacturer=" + manufacturer + "]";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement