public class Product
extends java.lang.Object
Constructor and Description |
---|
Product() |
Modifier and Type | Method and Description |
---|---|
Description |
getDescription()
Returns the description of the product.
|
java.lang.String |
getId()
Returns the id of the product.
|
double |
getPrice()
Returns the price of the product.
|
void |
setDescription(Description description)
Sets the description of the product.
|
void |
setId(java.lang.String id)
Sets the id of the product.
|
void |
setPrice(double price)
Sets the price of the product.
|
public java.lang.String getId()
public void setId(java.lang.String id)
id
- The id of the product.public Description getDescription()
public void setDescription(Description description)
description
- The description of the product.public double getPrice()
public void setPrice(double price)
price
- The price of the product.