Kotlin, Android App Development.
AndroidPhone(private val assistant: Speaker) : Speaker by assistant { // Other phone-related functionalities } Here, AndroidPhone implements the Speaker interface by delegating the speak method to an instance of GoogleAssistant. Benefits of interface delegation: Code Reusability: You don’t have to