Created
January 18, 2023 13:47
-
-
Save alibahaaa/63e1a39518325e145d7c224e87018020 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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