File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Who i better OOP ?

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
I heard debate , where some claimed java is more Object oriented than C++, if so, then how ? Can anyone throw light on this ?
thanks in adavance !
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vikram,
Hmmm... the best argument for this is that Java was designed to be an object oriented language, whereas C++ was supposed to be an object oriented version of C (which was not originally object oriented). Therefore, more OO things are enforced in Java, whereas in C++ you can do things the old C way (non-OO) and they will still work fine...
Just my $0.02,
-Nate
 
Pravin Panicker
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Adding to that , In C++ you can have friendly methods that are does not belong to any class. You also have a main method which is again not enclosed in any class. This is not pure Object Oriented Approach you see!
 
Frank Carver
Sheriff
Posts: 6920
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Vikram D",
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, described at http://www.javaranch.com/name.jsp .
We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please choose a new name which meets the requirements.
Thanks.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic