Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save alz-ahm/cfc7b041ad06d5ffe0dbba8730e9cb46 to your computer and use it in GitHub Desktop.
Save alz-ahm/cfc7b041ad06d5ffe0dbba8730e9cb46 to your computer and use it in GitHub Desktop.
class OurThirdPartyGuy {
fun provideClassC(){
return ClassC() //just creating an instance of the object and return it.
}
fun provideClassB(classC: ClassC){
return ClassB(classC)
}
fun provideClassA(classB: ClassB){
return ClassA(classB)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment