Skip to content

Instantly share code, notes, and snippets.

@alibahaaa
Created January 18, 2023 13:46
Embed
What would you like to do?
abstract class Creator {
abstract fun factoryMethod(): Product
fun someOperation() {
val product = factoryMethod()
product.use()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment