Hello, Yesterday my friend asked me that Everyone say JAVA is a pure OO language but in java we are accessing the public static void main(String[] a){} outside any class and more over without creating an instance of that class containing that main()..... Still i am not getting the answer for this.. Someone help me out please.......... [ August 18, 2008: Message edited by: Bear Bibeault ]
This just shows that Java is not 0% OO - it has classes.
Early Visual Basic had classes and was "0% OO". (As far as I remember, they called it "object based".)
One thing that makes Java "not 100% OO" is that classes aren't objects (as they are in, for example, Smalltalk).
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
But Python has built-in functions that are not part of any class. So Python is also not 100% OO.
The thing is, that there is no exact definition of what is "OO" and what is not "OO". Almost all practical programming languages have a mixture of features, and since the definition of "OO" is not exact, the idea whether a language is "100% OO" or not is a matter of opinion rather than a matter of fact.