Reputation:
i am new to objective C.is it possible multiple ,multilevel,hybrid,hierarchical,all types of inheritance in objective C?
(Translation: What kind of inheritance does Objective-C support?)
Upvotes: 2
Views: 3228
Reputation: 162712
No. Objective-C supports single inheritance.
You can declare multiple inheritance intentions through protocols, but you'll need to provide implementations per conforming class.
Categories allow for the extension of an existing class, but do not allow for the extension of multiple classes simultaneously.
I would suggest that you start here:
Introduction to The Objective-C 2.0 Programming Language
Upvotes: 10
Reputation: 881635
No multiple inheritance of implementation in Objective C. As an alternative, consider categories. Not sure what you mean by multilevel, hybrid or hierarchical in this context. What are your actual NEEDS, as opposed to, a bunch of buzzwords...?-)
Upvotes: 5