【Java开源代码栏目提醒】:文章导读:在新的一年中,各位网友都进入紧张的学习或是工作阶段。网学会员整理了Java开源代码-ConcreteBuilder1.java的相关内容供大家参考,祝大家在新的一年里工作和学习顺利!
package com.javapatterns.builder.extended1;
public class ConcreteBuilder1 extends Builder
{
/**
* @label Creates
*/
private Product1 product = new Product1() ;
public void buildPart1()
{
//build the first part of the product
}
public void buildPart2()
{
//build the second part of the product
}
public Product retrieveResult()
{
return product;
}
}