Package Creational.Builder
Interface Builder
- All Known Implementing Classes:
ConcreteBuilder
public interface Builder
Abstract interface for constructing a Product.
Defines the methods for building different parts of a product
and retrieving the final constructed result.
-
Method Summary
Modifier and TypeMethodDescriptionvoidBuilds Part A of the product.voidBuilds Part B of the product.Retrieves the constructed product.
-
Method Details
-
buildPartA
void buildPartA()Builds Part A of the product. -
buildPartB
void buildPartB()Builds Part B of the product. -
getResult
Product getResult()Retrieves the constructed product.- Returns:
- The constructed Product instance.
-