0
Why is c++ not a fully oop language ?
17 odpowiedzi
+ 3
I believe it is because of the C portion of the language.
C is a structured and procedural language that is inherited by C++
[edit] for the answer refer @Ace's comments
+ 3
@Ace
I think I understand,
In pure oop language like ruby , js , and php you do not need to define data types, like int, char , double.
+ 2
^this
+ 2
@Michael, If there is such a thing as a "fully object-oriented" language (and I don't think there is), then I'd have to agree with ace. Doesn't get more object-oriented than "everything is an object". Java then would not be "fully object-oriented", just close.
+ 2
@ace, sure, ruby is oo, js is prototype-flavoured oo and php is oo since version 4 :P
Edit: But not "fully oo", I get it. Sorry
+ 2
Well thank you @Ace then, I've never thought about it that way. Good to learn something new :P
+ 2
Let's just agree that PHP is spaghetti code-oriented, what an awful language! :D
+ 1
primitive types are present in Java as well, still it is considered an OO language
+ 1
In addition, C++ is not a pure as it has friend functions, which allows use of private members in functions not completely part of the class (they are not methods).
0
@Ace what is the pure oop language if java not?
0
I don't agree with that concept. An object oriented language must support working with objects. That is it. There is no such thing as fully objected oriented language. Encapsulating the way types are handled does not make a language more oriented to classes or anything like that.