Last active
September 13, 2019 23:50
-
-
Save alejandro-rios/d469fad5dfc35a3e55610ce70029a005 to your computer and use it in GitHub Desktop.
Di Basic Example
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
// Reference taken from | |
// https://www.raywenderlich.com/262-dependency-injection-in-android-with-dagger-2-and-kotlin | |
class Parent { | |
private val child = Child() | |
} | |
class Parent(private val child: Child) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment