diff --git a/Object-Oriented Programming/Downcasting/Exercise 1/src/Task.kt b/Object-Oriented Programming/Downcasting/Exercise 1/src/Task.kt index a9758609..1f2bfa1c 100644 --- a/Object-Oriented Programming/Downcasting/Exercise 1/src/Task.kt +++ b/Object-Oriented Programming/Downcasting/Exercise 1/src/Task.kt @@ -25,7 +25,7 @@ fun checkAndCall(b: Base) { } fun main() { - checkAndCall(Derived1()) // Upcast +/* checkAndCall(Derived1()) // Upcast checkAndCall(Derived2()) // Upcast trace eq """ Derived1.f() @@ -33,4 +33,5 @@ fun main() { Derived2.f() Derived2.h() """ + */ } \ No newline at end of file diff --git a/Object-Oriented Programming/Downcasting/Exercise 1/task-info.yaml b/Object-Oriented Programming/Downcasting/Exercise 1/task-info.yaml index da98f994..b28c08e8 100644 --- a/Object-Oriented Programming/Downcasting/Exercise 1/task-info.yaml +++ b/Object-Oriented Programming/Downcasting/Exercise 1/task-info.yaml @@ -4,7 +4,7 @@ files: visible: true placeholders: - offset: 80 - length: 540 + length: 361 placeholder_text: // TODO - name: test/Tests.kt visible: false diff --git a/Object-Oriented Programming/Polymorphism/Exercise 1/src/Task.kt b/Object-Oriented Programming/Polymorphism/Exercise 1/src/Task.kt index da069341..c29ab58a 100644 --- a/Object-Oriented Programming/Polymorphism/Exercise 1/src/Task.kt +++ b/Object-Oriented Programming/Polymorphism/Exercise 1/src/Task.kt @@ -47,7 +47,7 @@ class Wizard: fun Character.playTurn() = name + ": " + play() fun main() { - listOf( +/* listOf( Warrior(), Elf(), FightingElf(), @@ -57,4 +57,5 @@ fun main() { "[Warrior: Fight!, Elf: Magic!, " + "FightingElf: Magic!Fight!, " + "Dragon: Fly!, Wizard: Magic!Fly!]" +*/ } \ No newline at end of file diff --git a/Object-Oriented Programming/Polymorphism/Exercise 1/task-info.yaml b/Object-Oriented Programming/Polymorphism/Exercise 1/task-info.yaml index 38d5e4eb..3d86b148 100644 --- a/Object-Oriented Programming/Polymorphism/Exercise 1/task-info.yaml +++ b/Object-Oriented Programming/Polymorphism/Exercise 1/task-info.yaml @@ -5,12 +5,9 @@ files: placeholders: - offset: 592 length: 76 - placeholder_text: class Dragon + placeholder_text: '// class Dragon:' - offset: 670 length: 98 - placeholder_text: class Wizard - - offset: 924 - length: 13 - placeholder_text: TODO() + placeholder_text: '// class Wizard:' - name: test/Tests.kt visible: false