Created
September 21, 2020 08:26
-
-
Save aleksandarzekovic/15ed53e387f3c01e0ba7e7f83f76b073 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 Engine @Inject constructor(){ | |
| fun turnOn() { | |
| Log.d("TAG", "Engine is turn on") | |
| } | |
| } | |
| class Transmission @Inject constructor(){ | |
| } | |
| class Car @Inject constructor(private val engine: Engine, private val transmission: Transmission) { | |
| fun startCar(){ | |
| engine.turnOn() | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment