0

Which is Pure and which is True object oriented programming languageā€“ C++ or Java?

Object oriented programming

20th Dec 2016, 10:15 AM
Aayush Agarwal
8 Answers
+ 1
Neither šŸ˜‚ C++ and Java both have primitive data types, and C++ specifically has support for low-level and procedural programming
20th Dec 2016, 10:18 AM
Gabe Rust
Gabe Rust - avatar
+ 1
@TechTro Not true... primitive types in Java aren't objects...
20th Dec 2016, 10:26 AM
Gabe Rust
Gabe Rust - avatar
+ 1
Java is OOP, but it isn't PURE OOP
20th Dec 2016, 10:26 AM
Gabe Rust
Gabe Rust - avatar
+ 1
c++ is not pure oop Java is pure oop
20th Dec 2016, 11:50 AM
Sandeep Chatterjee
0
Because you can't code anything in Java without declaring classes and objects. Even the small "Hello World" declares a class: class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); // Display the string. } } In C++ you can still use structured programming without classes to build applications (although it makes it harder to maintain or escalate compared to OO): #include using namespace std; int main () { cout << "Hello World!"; return 0; } C++ can be OO or structured, while Java requires objects all the time. Personally, if I was going to build anything in C++, I would do it using objects. Hope this helps.
20th Dec 2016, 10:24 AM
Abdelaziz Abubaker
Abdelaziz Abubaker - avatar
0
Yup Gabe Rust, even java does not provide operator overloading and multiple Inheritance..
20th Dec 2016, 10:33 AM
Aayush Agarwal
0
Most of the languages support multiple paradigms
20th Dec 2016, 11:38 AM
Rishi Anand
Rishi Anand - avatar
0
Neither
20th Dec 2016, 1:37 PM
Doolitha Samaranayake
Doolitha Samaranayake - avatar