November 2013
Beginner
325 pages
9h 47m
English
When you created the BNRPerson class, you declared it to be a subclass of NSObject. This means that every instance of BNRPerson will have the instance variables and methods defined in NSObject as well as the instance variables and methods defined in BNRPerson. We say that BNRPerson inherits the instance variables and methods from NSObject.
In this chapter, you are going to create a new class named BNREmployee. BNREmployee will be a subclass of BNRPerson.
Figure 20.1 BNREmployee inherits from BNRPerson
Makes sense, right? Employees are people. They have heights and weights. But not all people are ...
Read now
Unlock full access