Tutorial by Topics: delegation

public delegate void ActionClick(); public event ActionClick OnResetClick; I haven't found any disadvantages in this approach but there are a few things which make this a little problematic. You need to add an event handler for each and every event. If you do not add the event ha...
A Kotlin class may implement an interface by delegating its methods and properties to another object that implements that interface. This provides a way to compose behavior using association rather than inheritance.

Page 1 of 1