open class Person {
fun jump() {
println("Jumping...")
}
}
class Ninja: Person() {
fun sneak() {
println("Sneaking around...")
}
}
fun main(args: Array<String>) {
val ninja = Ninja()
ninja.jump() // prints: 'Jumping...'
ninja.sneak() // prints: 'Sneaking around...'
}