Skip to content

Instantly share code, notes, and snippets.

@joshskeen
Created July 21, 2017 18:29
Show Gist options
  • Save joshskeen/01ecd38aa866e16db1cca7769660af34 to your computer and use it in GitHub Desktop.
Save joshskeen/01ecd38aa866e16db1cca7769660af34 to your computer and use it in GitHub Desktop.
overriding a function in kotlin
open class Qaz {
open fun foo(): String {
return "FOO!"
}
}
class Bar : Qaz() {
override fun foo(): String {
return "FOO"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment