1
1
Fork 0
AtomicKotlinCourse/Object-Oriented Programming/Abstract Classes/Exercise 3/task-info.yaml

35 lines
753 B
YAML

type: edu
files:
- name: src/Task.kt
visible: true
placeholders:
- offset: 122
length: 112
placeholder_text: |-
abstract class Instrument {
abstract fun play(n: Note): String
}
- offset: 236
length: 39
placeholder_text: |-
class Wind : Instrument() {
override fun play(n: Note) =
"Wind blow $n"
}
- offset: 277
length: 53
placeholder_text: |-
class Percussion : Instrument() {
override fun play(n: Note) =
"Percussion strike $n"
}
- offset: 332
length: 48
placeholder_text: |-
class Stringed : Instrument() {
override fun play(n: Note) =
"Stringed pluck $n"
}
- name: test/Tests.kt
visible: false