Saturday, May 22, 2010

How java is fully object oriented ?

why i am asking is " java didnt support operator overloading and multiple inheritance. but it is supported by c++ which is partial oops. so i need clarification can any one clear my doubts

How java is fully object oriented ?
I agree with scruffy - multiple inheritance and operator overloading aren't absolutely necessary for classification as an object-oriented language. Something similar to multiple inheritance can be done under Java using multiple interfaces anyway. There isn't even a precise, agreed upon, definition of an object-oriented language (see http://en.wikipedia.org/wiki/Object-orie... ) so I'm not sure can say what "fully object-oriented" means exactly. In my opinion, whether it is "fully OO" doesn't really matter as long as you are aware of what is supported by the language and how that compares to other languages you have to choose from. In other words, is it the best choice for what you want to use it for?





(There are other features missing in Java besides the two you list which have to do with OOP - see the reference below)
Reply:I don't think operator overloading and multiple inheritance are strict requirements of an object oriented language. If they are, the only argument I can see for saying it's "fully" OO is that all code in java MUST be contained in a class.


No comments:

Post a Comment