hachyderm.io is one of the many independent Mastodon servers you can use to participate in the fediverse.
Hachyderm is a safe space, LGBTQIA+ and BLM, primarily comprised of tech industry professionals world wide. Note that many non-user account types have restrictions - please see our About page.

Administered by:

Server stats:

8.9K
active users

Paul Cantrell

I am looking for a nice reading for students about using delegates instead of inheritance.

By “delegates,” I mean where one might be tempted to provide an abstract class where subclasses fill in the blanks to customize a process, instead the superclass accepts an interface/protocol that a delegate object implements (à la UIKit).

Just the basics. Simple is good.

Anyone know of, say, a blog post or chapter from a book that covers this nicely?