Skip to content

Commit 73f61ae

Browse files
alanloisarahhaggarty
authored andcommitted
Updated the exercise documentation on delegation to correctly refer to the interface instead of the class.
1 parent ec9b5c5 commit 73f61ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/topics/tour/kotlin-tour-intermediate-classes-interfaces.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ fun main() {
610610
You have a simple messaging app that has some basic functionality, but you want to add some functionality for
611611
_smart_ messages without significantly duplicating your code.
612612

613-
In the code below, define a class called `SmartMessenger` that inherits from the `BasicMessenger` class but delegates
613+
In the code below, define a class called `SmartMessenger` that inherits from the `Messenger` interface but delegates
614614
the implementation to an instance of the `BasicMessenger` class.
615615

616616
In the `SmartMessenger` class, override the `sendMessage()` function to send smart messages. The function must accept

0 commit comments

Comments
 (0)