Skip to content

Commit d5f93bb

Browse files
hubito98SebastianAigner
authored andcommitted
Fix formatting
1 parent 51c6ca8 commit d5f93bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

examples/07_Delegation/01_delegationPattern.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@ interface SoundBehavior {
77
fun makeSound()
88
}
99
10-
class ScreamBehavior(val n:String): SoundBehavior { // 2
10+
class ScreamBehavior(val n: String): SoundBehavior { // 2
1111
override fun makeSound() = println("${n.uppercase()} !!!")
1212
}
1313
14-
class RockAndRollBehavior(val n:String): SoundBehavior { // 2
14+
class RockAndRollBehavior(val n: String): SoundBehavior { // 2
1515
override fun makeSound() = println("I'm The King of Rock 'N' Roll: $n")
1616
}
1717
1818
// Tom Araya is the "singer" of Slayer
19-
class TomAraya(n:String): SoundBehavior by ScreamBehavior(n) // 3
19+
class TomAraya(n: String): SoundBehavior by ScreamBehavior(n) // 3
2020
2121
// You should know ;)
22-
class ElvisPresley(n:String): SoundBehavior by RockAndRollBehavior(n) // 3
22+
class ElvisPresley(n: String): SoundBehavior by RockAndRollBehavior(n) // 3
2323
2424
fun main() {
2525
val tomAraya = TomAraya("Thrash Metal")

0 commit comments

Comments
 (0)