| java.lang.Object org.compass.gps.device.jdo.Product
Product | public class Product (Code) | | Definition of a Product Represents a product, and contains the key aspects of
the item.
|
Constructor Summary | |
protected | Product() Default constructor. | public | Product(String name, String description, double price) Constructor. |
description | protected String description(Code) | | Description of the Product.
|
price | protected double price(Code) | | Value of the Product.
|
Product | protected Product()(Code) | | Default constructor.
|
Product | public Product(String name, String description, double price)(Code) | | Constructor.
Parameters: name - name of product Parameters: description - description of product Parameters: price - Price |
getDescription | public String getDescription()(Code) | | Accessor for the description of the product.
Description of the product. |
getName | public String getName()(Code) | | Accessor for the name of the product.
Name of the product. |
getPrice | public double getPrice()(Code) | | Accessor for the price of the product.
Price of the product. |
setDescription | public void setDescription(String description)(Code) | | Mutator for the description of the product.
Parameters: description - Description of the product. |
setName | public void setName(String name)(Code) | | Mutator for the name of the product.
Parameters: name - Name of the product. |
setPrice | public void setPrice(double price)(Code) | | Mutator for the price of the product.
Parameters: price - price of the product. |
|
|