Chapter     5

Inheritance

In the previous chapters you explored some of the basic ideas of object-oriented programming in Objective-C. As you have seen, OOP is the main software development concept that motivated the creation of the language. A chief feature of OOP is the ability to create new classes that inherit methods, variables, and properties from other existing classes. You see, then, that to master the language you need to attain a good working knowledge of the concept of class-based inheritance.

The proper use of inheritance, however, requires a certain amount of attention both during the design phase as well as with the implementation of base and derived classes. In this chapter you will explore topics related to inheritance in Objective-C, ...

Get Objective-C Programmer's Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.