Skip to content

Instantly share code, notes, and snippets.

@alibahaaa
Created February 5, 2023 09:54
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/38935690731b5caa2ede158ff03bc9bc to your computer and use it in GitHub Desktop.
Save alibahaaa/38935690731b5caa2ede158ff03bc9bc to your computer and use it in GitHub Desktop.
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