Skip to content

Instantly share code, notes, and snippets.

@oscarg798
Last active August 2, 2022 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save oscarg798/84b425def38895b5ee4553ea6d3fd451 to your computer and use it in GitHub Desktop.
Save oscarg798/84b425def38895b5ee4553ea6d3fd451 to your computer and use it in GitHub Desktop.
class Car {
fun start(){
val engine = V6Engine()
startIgnition()
pressBrake()
engine.start()
}
private fun startIgnition(){...}
private fun pressBrake(){..}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment