0

well i am having lots of question regarding to the desired topic,well its better to be short here.

1> C# is object oriented or object based

2> java is object oriented or object based

as per my knowledge c# is object oriented and java is object based,if it is true then what makes java to be oriented not object oriented.

5
  • It seems to me that "object oriented" and "object based" are synonyms in most contexts. You may need to provide definitions of the terms to clarify the question. Commented Jan 17, 2011 at 10:02
  • there is nothing like what u have written,the question is perfectly right Commented Jan 17, 2011 at 10:07
  • before giving negative points i think u shud have proper knowledge of the question as well knowledge of answer Commented Jan 17, 2011 at 10:12
  • As evidenced by the comment exchange below, you're not looking for a real answer to this question. Thus, I'm voting to close. Commented Jan 17, 2011 at 10:38
  • i really dont have any prob if u r closing the post,just like to give u a simple sugassition......half knowledge is dangerous Commented Jan 17, 2011 at 11:11

2 Answers 2

1

Object based programming paradigm makes use of all the features of object oriented programming except for inheritance. For example JavaScript is object based whereas Java is object oriented.

Although it is common to use these two terms mutually exclusively, practically speaking, an object oriented language is also object based but not vice versa.

Sign up to request clarification or add additional context in comments.

Comments

1

Both C# and Java are object-oriented languages.

Generally, a language is regarded as "object-based" when it lacks support for certain central features of a truly object-oriented language, namely inheritance and polymorphism. A good example of an object-based language is VB 6 (the pre-.NET version). It was based on objects, but it did not support either inheritance or polymorphism, making it impossible to regard as a truly object-oriented language.

18 Comments

but java does not support operator overloding,which is a part of polymorphism
@slash shogdhe: Operator overloading is not a property of Object Orientation. It just makes a lot of sense there.
@slash: I don't see how operator overloading is part of polymorphism. It is not necessarily even part of an object-oriented paradigm, and some would even go so far as to argue that overloading is anti-OO. More to the point, there's no real definition of what a "pure" object-oriented language looks like. Why ask the question if you think you already know the answer?
@slash: Again, why ask a question if you are already convinced of the answer? No, I don't consider "Google Directory" an authoritative source. Objective-C doesn't support operator overloading, either. Do you think this makes it not an object-oriented language?
|

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.