File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Who i better OOP ?" Watch "Who i better OOP ?" New topic

Who i better OOP ?

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

Joined: Oct 18, 2000
Posts: 4121

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,

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

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 .
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.

Read about me at ~ Raspberry Alpha Omega ~ Frank's Punchbarrel Blog
I agree. Here's the link:
subject: Who i better OOP ?
It's not a secret anymore!