public class Product extends Object
Constructor and Description |
---|
Product() |
Modifier and Type | Method and Description |
---|---|
void |
addPart(Part part)
Add a part.
|
String |
getName()
Get the name.
|
List |
getParts()
Get the parts.
|
double |
getPrice()
Get the price.
|
void |
setName(String name)
Set the name.
|
void |
setPrice(double price)
Set the price.
|
String |
toString()
Get the string representation.
|
public String getName()
public void setName(String name)
name
- The name to set.public double getPrice()
public void setPrice(double price)
price
- The price to set.public void addPart(Part part)
part
- The part.public List getParts()
Copyright © 2012. All Rights Reserved.