Package Creational.Builder
Class Product
java.lang.Object
Creational.Builder.Product
Represents the complex product being built.
The Product class includes parts `partA` and `partB`, representing
different components of the product. It provides methods to set these
parts and to retrieve a string representation of the constructed product.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Product
public Product()Default constructor for Product.
-
-
Method Details
-
setPartA
Sets Part A of the product.- Parameters:
partA- A string representing Part A.
-
setPartB
Sets Part B of the product.- Parameters:
partB- A string representing Part B.
-
toString
Provides a string representation of the product.
-