Last active
August 6, 2020 15:16
-
-
Save catalinghita8/0ee4415c15979926f8696bf79feb3785 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 ViewModel { | |
| private val repository: Repository = Repository() | |
| fun doSomething() { | |
| repository.use() | |
| } | |
| } | |
| class Repository { | |
| private val objectA: A = A() | |
| private val objectB: B = B() | |
| fun use() { | |
| objectA.use() | |
| objectB.use() | |
| } | |
| } | |
| fun main { | |
| val vm = ViewModel() | |
| vm.doSomething() | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment