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

问题描述

我正在与一位同事讨论C和C ++,他声称C是面向对象的,但我声称不是.我知道您可以用C做类似面向对象的事情,但是C ++是真正的面向对象语言.

I was talking with a co-worker about C and C++ and he claimed that C is object-oriented, but I claimed that it was not. I know that you can do object-oriented-like things in C, but C++ is a true object-oriented language.

您有什么想法?

此外,它引发了关于谁决定面向对象的含义的讨论,而且很难说出面向对象的真正正式含义.您对此有何看法?

Also, it triggered discussion on who decides what it means to be object-oriented and that it's tough to say what object-oriented really officially means. What are you thoughts on this?

推荐答案

如果是面向对象的吗?"您的意思是"C语言是否设计有专门用于支持面向对象编程的功能?"那么,不,C显然不是面向对象的.

If by "is C object oriented?" you mean "is C designed with facilities specifically to support object oriented programming?" then, no, C is clearly not object oriented.

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

05-16 09:16