加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

objective-c – Objective C是一种纯粹的面向对象语言吗?

发布时间:2020-12-16 09:51:44 所属栏目:百科 来源:网络整理
导读:Objective C是一种纯粹的面向对象语言吗? 如果有,请给出一些强有力的参考? 解决方法 根据Apple Programming with Objective-C指南: Objective-C is the primary programming language you use when writing software for OS X and iOS. It’s a superset
Objective C是一种纯粹的面向对象语言吗?
如果有,请给出一些强有力的参考?

解决方法

根据Apple Programming with Objective-C指南:

Objective-C is the primary programming language you use when writing software for OS X and iOS. It’s a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime. Objective-C inherits the syntax,primitive types,and flow control statements of C and adds syntax for defining classes and methods. It also adds language-level support for object graph management and object literals while providing dynamic typing and binding,deferring many responsibilities until runtime.

因此,人们不会认为它是“纯面向对象语言”(实际上许多底层Core Foundation接口都是C函数),但您通常可以使用它编写面向对象的代码.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读