Skip to content

Instantly share code, notes, and snippets.

@ismailgungor
Last active April 4, 2019 18:04
Show Gist options
  • Save ismailgungor/b4d9dc063ea360d2c4f1409832ba7be8 to your computer and use it in GitHub Desktop.
Save ismailgungor/b4d9dc063ea360d2c4f1409832ba7be8 to your computer and use it in GitHub Desktop.
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