design_patterns:builder

Builder pattern

UML Code (PlantUML)

@startuml
left to right direction
Builder <|-- ConcreteBuilder
Director o-- Builder
ConcreteBuilder..> Product

class Director{
  Builder : builder
  construct()
}

interface Builder{
  {abstract} buildPart()
}

class ConcreteBuilder{
  buildPart()
  getResult() : Product
}

class Product{
}
@enduml

  • design_patterns/builder.txt
  • Last modified: 2017/02/19 14:47
  • by phreazer