377074 (5) [Avatar] Offline
#1
internal open class TalkativeButton : Focusable {
private fun yell() = println("Hey!")
protected fun whisper() = println("Let's talk!")
}


Error: cannot access 'yell': it is 'protected' in 'TalkativeButton'
Error: cannot access 'whisper': it is 'private' in 'TalkativeButton'


page 76 - 77

I think you intended is to be


Error: cannot access 'yell': it is 'private' in 'TalkativeButton'
Error: cannot access 'whisper': it is 'protected' in 'TalkativeButton'
Svetlana Isakova (9) [Avatar] Offline
#2
Thanks, you're right! I'll fix that.