37 lines
877 B
YAML
37 lines
877 B
YAML
type: edu
|
|
files:
|
|
- name: src/Task.kt
|
|
visible: true
|
|
placeholders:
|
|
- offset: 50
|
|
length: 106
|
|
placeholder_text: |-
|
|
class Shape(
|
|
val name: String,
|
|
val color: String
|
|
) {
|
|
fun draw() = "drawing $color $name"
|
|
}
|
|
- offset: 158
|
|
length: 105
|
|
placeholder_text: "class Circle(\n val radius: Int, \n val color: String\n)\
|
|
\ {\n val shape = Shape(\"circle of radius $radius\", color)\n}"
|
|
- offset: 265
|
|
length: 137
|
|
placeholder_text: |-
|
|
class Rectangle(
|
|
val height: Int,
|
|
val width: Int,
|
|
val color: String
|
|
) {
|
|
val shape = Shape("rectangle of size ${height}x$width", color)
|
|
}
|
|
- offset: 500
|
|
length: 13
|
|
placeholder_text: circle.shape.draw()
|
|
- offset: 523
|
|
length: 16
|
|
placeholder_text: rectangle.shape.draw()
|
|
- name: test/Tests.kt
|
|
visible: false
|