Why is c++ not a fully oop language ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Why is c++ not a fully oop language ?

30th Aug 2017, 4:50 PM
Satyam Anand
Satyam Anand - avatar
11 Answers
+ 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
30th Aug 2017, 5:17 PM
Manual
Manual - avatar
+ 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.
30th Aug 2017, 7:30 PM
Manual
Manual - avatar
+ 2
^this
30th Aug 2017, 5:27 PM
Michael Vigato
Michael Vigato - avatar
+ 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.
30th Aug 2017, 6:52 PM
Schindlabua
Schindlabua - avatar
+ 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
30th Aug 2017, 8:15 PM
Schindlabua
Schindlabua - avatar
+ 2
Well thank you @Ace then, I've never thought about it that way. Good to learn something new :P
30th Aug 2017, 8:25 PM
Michael Vigato
Michael Vigato - avatar
+ 2
Let's just agree that PHP is spaghetti code-oriented, what an awful language! :D
30th Aug 2017, 8:27 PM
Schindlabua
Schindlabua - avatar
+ 1
primitive types are present in Java as well, still it is considered an OO language
30th Aug 2017, 6:45 PM
Michael Vigato
Michael Vigato - avatar
+ 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).
31st Aug 2017, 1:12 AM
Kinshuk Vasisht
Kinshuk Vasisht - avatar
0
@Ace what is the pure oop language if java not?
30th Aug 2017, 7:19 PM
NetMan
NetMan - avatar
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.
30th Aug 2017, 11:52 PM
Denis Felipe
Denis Felipe - avatar