Inheritance in object C

I'm new to objective C. Maybe multiple, multilevel, hybrid, hierarchical, all inheritance types in a C object?

(Translation: What kind of inheritance does Objective-C support?)

+2


source to share


2 answers


Not. Objective-C supports single inheritance.

You can declare multiple inheritance intents across protocols, but you need to provide implementations to the appropriate class.

Categories can extend an existing class, but do not allow multiple classes to be extended at the same time.



I would suggest you start here:

Introduction to the Objective-C 2.0 Programming Language

+10


source


There is no multiple inheritance of implementation in Objective C. Alternatively, consider categories . Not sure what you mean by tiered, hybrid or hierarchical in this context. What are your actual needs, not a bunch of words ...? -)



+5


source







All Articles