FileDocCategorySizeDatePackage
Purchase.javaAPI DocExample1805Sun Dec 14 22:47:30 GMT 2003oreilly.hcj.collections

Purchase

public class Purchase extends Object
A demo purchase bean.
author
Robert Simmons jr. (kraythe)
version
$Revision: 1.3 $

Fields Summary
private String
itemName
Holder for the property itemName.
private float
price
Holder for the property price.
Constructors Summary
public Purchase()
Creates a new Purchase object.

	
public Purchase(String itemName, float price)
Creates a new Purchase object.

param
itemName The name of the item purchased.
param
price The price of the item purchased.

		setItemName(itemName);
		setPrice(price);
	
Methods Summary
public java.lang.StringgetItemName()
Getter for the property itemName.

return
The current name.

		return this.itemName;
	
public floatgetPrice()
Getter for the property price.

return
The current price.

		return this.price;
	
public voidsetItemName(java.lang.String itemName)
Setter for the property itemName.

param
itemName The new name.

		this.itemName = itemName;
	
public voidsetPrice(float price)
Setter for the property price.

param
price The new price.

		this.price = price;