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?