Created
December 9, 2018 16:49
-
-
Save alz-ahm/cfc7b041ad06d5ffe0dbba8730e9cb46 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 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