In the book, says:
First, objects that are not instances of BNREmployee can no longer see this property. For instance, a non-BNREmployee object could attempt to access an employee’s alarm code like this:
BNREmployee *mikey = [[BNREmployee alloc] init];
unsigned int mikeysCode = mikey.officeAlarmCode;
I sort of get this. However it seems like mikey is a BNREmployee & mikey is accessing officeAlarmCode (e.g. mikey.officeAlarmCode is the same as [mikey officeAlarmCode] and the output is being stored in mikeysCode (which is not a BNREmployee).
Can someone clarify this idea?
What’s are some examples of a BNREmployee accessing an officeAlarmCodes?