English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2006-08-14 04:53:41 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

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)

2006-08-14 05:34:26 · answer #1 · answered by George3 4 · 0 0

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.

2006-08-14 11:59:36 · answer #2 · answered by scruffy 5 · 0 0

fedest.com, questions and answers