0
Why is C++ more suited for object-oriented programming than Java?
Object-oriented programming
3 Respostas
+ 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!
+ 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.
0
actually no. JAVA is more suited oop language. it was specifically made for this.