+ 2
Can C++ is pure oop Language???
if yes than reason tell me and no than also tell me why it is not...
7 Answers
+ 4
@Rohit: You don't necessarily require classes for OOP. You need objects. Classes are important in type-safe languages. Compare JavaScript's prototype mechanism or object keywords in Scala and Kotlin.
In fact, classes are contraindication for OOP, if the language also has the static keyword.
+ 3
I'd argue that even Java is not pure OOP, since there are things that aren't objects. So no, C++ certainly isn't pure.
+ 2
I'm pretty sure it's an OOP language. Correct me if I'm wrong.
0
@Rubyn_A c++ is not pure oop
- 1
No. Objects protect their data. Not classes. Classes just say: All these objects behave the same way. They are just syntax, not any underlying principle.
Look at Actor models. All objects have the same interface and only have the ability to receive messages. That is how OOP was first done. Objects communicate with messages. Classes came later.
Don't let the fact fool you that you know only C++ and Java.