Skip to content

Instantly share code, notes, and snippets.

View ricardo-vallejo's full-sized avatar
🤓
Learning

Ricardo Vallejo ricardo-vallejo

🤓
Learning
  • S4N
  • Colombia
View GitHub Profile
@ricardo-vallejo
ricardo-vallejo / Builder.scala
Created December 15, 2021 20:57 — forked from kencoba/Builder.scala
Builder pattern (Design patterns in Scala)
abstract class Product
abstract class PizzaBuilder {
var dough: String
var sauce: String
var topping: String
def withDough(dough: String): PizzaBuilder
def withSauce(sauce: String): PizzaBuilder
def withTopping(topping: String): PizzaBuilder