Objective-C - Private vs Protected vs Public

前端 未结 4 574
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-07 16:53

I am hoping for some clarification on how Private vs Protected vs Public works with respect to class members when programming in Objective-C - I thought I knew the differenc

4条回答
  •  一向
    一向 (楼主)
    2020-12-07 17:25

    You aren't accessing the members - you are accessing the property on Person which does not have the access level specified.

提交回复
热议问题