Delegation is hiring someone else to answer the phone. A class can implement an interface by forwarding every call to an object you pass in — that is class delegation with by. For properties, lazy computes once, observable notifies on change — the standard library ships ready-made delegates so you write the interesting part only.
Class delegation — by
Content is available with subscription.
Get full access to all courses on the platform for one year with a single payment.
▼
Unlike other platforms that charge per course, here you get everything for one price, and after one year of use there will be no automatic charge for the following year.