News for hackers. Stuff that matters.
Re:A better introduction to Objective-C by Zev on Tuesday September 27, 2011 @02:47AM (#3042163)
Close.

A protocol says that an object can (and in some (but not all) cases, is required to) implement a given list of methods, leaving the implementation/the "how" up to the programmer. Think of protocols as being similar to interfaces in Java.

OTOH, A category says "in addition to the existing methods, this class will also, for sure, implement these additional methods — and here's how."

There are no comments on this comment yet.