Skip to content

Instantly share code, notes, and snippets.

@alibahaaa
Created January 18, 2023 13:47
Embed
What would you like to do?
class ConcreteCreatorA : Creator() {
override fun factoryMethod(): Product {
return ConcreteProductA()
}
}
class ConcreteCreatorB : Creator() {
override fun factoryMethod(): Product {
return ConcreteProductB()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment