public class ProductList extends Object
Constructor and Description |
---|
ProductList() |
Modifier and Type | Method and Description |
---|---|
void |
addProduct(Product product)
Add a product.
|
String |
getName()
Get the name.
|
Product[] |
getProducts()
Get all products.
|
void |
setName(String name)
Set the name.
|
String |
toString()
Get the string representation.
|
public String getName()
public void setName(String name)
name
- The name to set.public void addProduct(Product product)
product
- The product.public Product[] getProducts()
Copyright © 2012. All Rights Reserved.