Skip to content

Instantly share code, notes, and snippets.

@alibahaaa
Created January 18, 2023 13:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alibahaaa/7d08a2fc79af558796894a3d7bfb5f7b to your computer and use it in GitHub Desktop.
Save alibahaaa/7d08a2fc79af558796894a3d7bfb5f7b to your computer and use it in GitHub Desktop.
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