This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Beginning Java and the fly likes Who i better OOP ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Who i better OOP ?" Watch "Who i better OOP ?" New topic
Author

Who i better OOP ?

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Oct 18, 2000
Posts: 4121

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


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Pravin Panicker
Ranch Hand

Joined: Oct 05, 2000
Posts: 62
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!


Pravin R Panicker<br />SCJP,SCWCD
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6920
"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.

Read about me at frankcarver.me ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Who i better OOP ?