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, ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access