是C ++完全面向对象的语言吗? [英] Is C++ completely object oriented language?

查看:185
本文介绍了是C ++完全面向对象的语言吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读到关于小谈话是完全面向对象的..是C ++也完全面向对象?如果没有..那么为什么这样??

I read about small talk being completely object oriented.. is C++ also completely object oriented? if no.. then why so??

推荐答案

不,不是。

C ++支持面向对象的编程,但是OO不是固有的语言。事实上,主函数不是对象的成员。

C++ supports object-oriented programming, but OO is not intrinsic to the language. In fact, the main function isn't a member of an object.

在smalltalk或Java中,你不能绑鞋子(或写Hello,world )没有至少一个类。

In smalltalk or Java, you can't tie your shoes (or write "Hello, world") without at least one class.

(当然,可以说Java也是一种完全面向对象的语言,因为它的基本类型对象。)

(Of course, one can argue about Java being a completely object-oriented language too, because its primitives (say, int) are not objects.)

这篇关于是C ++完全面向对象的语言吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆