0

Why is C++ more suited for object-oriented programming than Java?

Object-oriented programming

29th Aug 2017, 1:24 PM
Ulaankhuu Bymbasuren
Ulaankhuu Bymbasuren - avatar
3 Réponses
+ 1
C++ templates are better than java's, in every possible way. C++ also gives you more control with what kinds of parameters your methods take, and how (value, reference, move). C++ also has multiple inheritance, which java lacks. But don't tell the Java programmers that!
29th Aug 2017, 2:41 PM
Schindlabua
Schindlabua - avatar
+ 1
C++ also supports friending classes and functions, unlike Java. You also can't do things like creating copy constructors, move constructors, and overloading operators. Overall Java strips quite a few nice features away for OOP programming, which is why some people may consider it to support OOP better.
29th Aug 2017, 3:20 PM
aklex
aklex - avatar
0
actually no. JAVA is more suited oop language. it was specifically made for this.
29th Aug 2017, 1:31 PM
shobhit
shobhit - avatar