Skip to content

Instantly share code, notes, and snippets.

@erokhins
Created August 14, 2013 14:16
Show Gist options
  • Save erokhins/6231457 to your computer and use it in GitHub Desktop.
Save erokhins/6231457 to your computer and use it in GitHub Desktop.
open class A(open val bar: Int = 5) {
{
println("A: " + bar)
}
}
class B(override val bar: Int = 2) : A() {
{
println("B: " + bar)
}
}
class C : A() {
{
println("C: " + bar)
}
}
fun main(args: Array<String>) {
B()
C()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment