+ 5
Why is C++ partially Object Oriented?
11 Réponses
+ 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.
+ 8
janibhai True... However, just to avoid confusion for others, Java isn't a pure OOP language either for other reasons. 😉
+ 6
Because you can also write non object oriented, procedural C-like code with it as well.
+ 5
Ace isn't Java a pure OOP? And if not why isn't so?
+ 3
Ok that was helpful. Thank you Ace
+ 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.
+ 2
even java has those data types so what makes it different?