www.pudn.com > StoreJava.rar > Bid.java


package com.bitc.store;  
//定义Bean所属的套件  
  
//定义欲使用的套件  
import java.io.*;  
  
//为了能让Bid物件能够被写入档案,   
//必须实做Serializable介面  
public class Bid implements Serializable  
{  
	//Bean属性  
	private String Name = "";  
	private int Price = 0;  
  
	public Bid()  //建构子  
	{		  
	}  
  
	//以下为设定Bean属性的方法  
	public void setName(String Name)  
	{ this.Name = Name; }  
	public void setPrice(int Price)  
	{ this.Price = Price; }  
  
	//以下为取得Bean属性的方法  
	public String getName()  
	{ return this.Name; }  
	public int getPrice()  
	{ return this.Price; }  
}