product.java

来自「一个小型的购物商店」· Java 代码 · 共 70 行

JAVA
70
字号
/* * Product.java * * Created on 2006年9月14日, 下午1:15 * * To change this template, choose Tools | Template Manager * and open the template in the editor. */package com.shopping.model;import java.util.Set;/** * * @author 曹昊 */public class Product {        private int id;    private String name;    private String description;    private double price;    private Set items;        public Product() {    }    public int getId() {        return id;    }    public void setId(int id) {        this.id = id;    }    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public String getDescription() {        return description;    }    public void setDescription(String description) {        this.description = description;    }    public double getPrice() {        return price;    }    public void setPrice(double price) {        this.price = price;    }        public Set getItems() {        return items;    }    public void setItems(Set items) {        this.items = items;    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?