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

7 answers

Java and C++ are not completely object oriented. They both have primitive types (int, float, etc.) that are not objects. SmallTalk, on the other hand, is a fully object oriented language that has been around for some years, but mainly as a research language. In SmallTalk, ints and floats have methods. (actually, they receive "messages", but that's a quibble) So, the line:

42 factorial

sends the "factorial" message to the number 42, which responds with the appropriate answer. You can't quite do this in Java or C++. In those languages, you'd have to write a factorial method for some other class, and then send 42 as an argument. This is different.

There's some good wiki at the link below.

2006-10-02 14:09:46 · answer #1 · answered by arbeit 4 · 0 0

Object orientedness is primarily in how you think when you write code, not the language you choose to write it in. For example, a class in C++ like:

class Foo {
public:
void Bar();
...
};

is virtually the same as something like this in C:

struct Foo { ... };
void Bar(Foo* implicit_parameter);

Conversely, anybody can write a "blob" class in C++ or Java, consisting of all the program's methods and data members, then instantiate one instance of it [I have :-(], which isn't object oriented. The OOP is in sticking to the principles of modularisation and object self-responsibility.

2006-09-27 19:54:20 · answer #2 · answered by jacinablackbox 4 · 0 0

"Object Oriented" is a design concept. Different languages have different ways of "enforcing" this concept.

Java and C# are the "most" object oriented languages I have experience with.

C++ is a blend of traditional "function based" capabilities with "object based" paradigms.

2006-09-27 19:30:52 · answer #3 · answered by jbtascam 5 · 0 0

JAVA is a complete and purely OOP language.
while, C++ is partially OOP language.
VB is an Object Base application development tool
(VB is not a language & its not ObjectOriented but ObjectBase)

i dont lnow about other language..

2006-09-27 21:05:08 · answer #4 · answered by Digitally Й!Й 3 · 0 0

JAVA, it is so far a very Object-Oriented programming language.


KaBalweg
http://smartcoder.awardspace.com

2006-09-27 22:46:44 · answer #5 · answered by dabsani 3 · 0 0

http://en.wikipedia.org/wiki/Object-oriented_programming

2006-09-27 19:30:05 · answer #6 · answered by Anonymous · 0 0

C++ of course.

2006-09-27 19:40:49 · answer #7 · answered by me_who2006 3 · 0 1

fedest.com, questions and answers