Last active
April 4, 2019 18:04
-
-
Save ismailgungor/b4d9dc063ea360d2c4f1409832ba7be8 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 MainActivity : AppCompatActivity() { | |
| override fun onCreate(savedInstanceState: Bundle?) { | |
| super.onCreate(savedInstanceState) | |
| setContentView(R.layout.activity_main) | |
| val cooker = Cooker() | |
| val cafeOld = Cafe(cooker) | |
| cafeOld.getProduct("makarna") | |
| val barmen = Barmen() | |
| val cafeNew = Cafe(barmen) | |
| cafeNew.getProduct("şeftali suyu") | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment