class extension in objective-c

前端 未结 6 1374
花落未央
花落未央 2021-01-07 01:48

I am learning object-c by reading a book. When I read the chapter about class extension, the book gives the following example code:

// A class extension
@int         


        
6条回答
  •  借酒劲吻你
    2021-01-07 02:27

    Mikes is an instance of BNREmployee. But the example is telling you that the property officeAlarmCode is not exposed and can only be used by BNREmployee objects internally.

提交回复
热议问题