// the product's internal representation and defines the process by which it's
// assembled.
// includes classes that define the constituent parts,including interfaces for
// assembling the parts into the final result.
//要创建复杂的对象该对象我们用hashtable组合表示。
public class product{
hashtable m_parts = new hashtable();
public void addparts(string partkey,string partvalue){
this.m_parts.add(partkey,partvalue);
}