Creating a deprecated lambda function from an interface

Report a typo
Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
In Kotlin, we are having a SAM interface 'EventNotifier' with an abstract function 'notifyEvent'. Your task is to create a lambda function, override the abstract function and annotate it with the newly learned 'Deprecated' annotation. The code looks as follows:
interface EventNotifier { fun notifyEvent(event: String) }
Select one option from the list

Create a free account to access the full topic