Home » questions » how java is fully object oriented ?

how java is fully object oriented ?

2006-08-14 08:53:41, Category: Programming & Design
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

Answers

  1. scruffy

    On 2006-08-14 08:59:36


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

    On 2006-08-14 09:34:26


    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-oriented_programming#Fundamental_concepts ) 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)