As others have said, Objective-C is unidirectional. However, protocols provide convenient ways to get around any situation for which you may need multiple inheritance, and they avoid the errors that several inheritance creates, such as the Diamond Problem .
Edit: Changes the interface to the protocol. Sorry for confusing Java and Obj-C.
source
share