inheritance - Multiple superclasses in Objective-C? -
can inherit multiple classes in objective-c? (if yes, how so?)
as others have said, objective-c single-inheritance. however, protocols provide handy ways around type of situation might have wanted multiple inheritance , allow avoid pitfalls multiple inheritance creates such the diamond problem.
edit: changes interface protocol. sorry, getting java , obj-c mixed up.
Comments
Post a Comment