+ 5

Why is C++ partially Object Oriented?

8th Sep 2019, 6:28 PM
Vineet Vijayagopal
Vineet Vijayagopal - avatar
11 odpowiedzi
+ 18
Vineet Vijayagopal Pure OOP is very different from modern OOP. Alan Kay's idea for OOP, as the person who first used the name, is really best reflected in Smalltalk (the language he created) and also in LISP. A few characteristics of Alan Kay's pure OOP are as follows: - All operations and data hiding involve message passing between objects. - Everything is late bound. - Everything is an object. This includes primitive types, classes, functions, etc. This isn't to say that C++ or Java don't support the OOP paradigm. These languages are more appropriately multi-paradigm languages, and therefore not Pure OOP.
9th Sep 2019, 1:35 AM
David Carroll
David Carroll - avatar
+ 8
janibhai True... However, just to avoid confusion for others, Java isn't a pure OOP language either for other reasons. 😉
10th Sep 2019, 2:45 PM
David Carroll
David Carroll - avatar
+ 6
Because you can also write non object oriented, procedural C-like code with it as well.
10th Sep 2019, 11:21 AM
Sonic
Sonic - avatar
+ 5
Ace isn't Java a pure OOP? And if not why isn't so?
8th Sep 2019, 10:16 PM
blACk sh4d0w
blACk sh4d0w - avatar
+ 3
Ok that was helpful. Thank you Ace
8th Sep 2019, 7:19 PM
Vineet Vijayagopal
Vineet Vijayagopal - avatar
+ 3
In cpp you can write method out of class. So it is not fully object oriented programming language. While in java there is everything is in class, interface and enumerations.
10th Sep 2019, 1:31 PM
Vishal Jani
Vishal Jani - avatar
+ 2
even java has those data types so what makes it different?
8th Sep 2019, 7:15 PM
Vineet Vijayagopal
Vineet Vijayagopal - avatar