i am new to objective C.is it possible multiple ,multilevel,hybrid,hierarchical,all types of inheritance in objective C?
+2
A:
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...?-)
Alex Martelli
2009-08-30 06:30:19
+6
A:
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:
bbum
2009-08-30 06:31:54