Created
February 5, 2023 09:54
-
-
Save alibahaaa/38935690731b5caa2ede158ff03bc9bc 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 SubsystemA { | |
fun operationA() { | |
// implementation | |
} | |
} | |
class SubsystemB { | |
fun operationB() { | |
// implementation | |
} | |
} | |
class Facade { | |
private val subsystemA = SubsystemA() | |
private val subsystemB = SubsystemB() | |
fun operation() { | |
subsystemA.operationA() | |
subsystemB.operationB() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment