Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!godot.cc.duq.edu!news.duke.edu!news.mathworks.com!newsfeed.internetmci.com!news.sprintlink.net!eskimo!jcharles
From: jcharles@eskimo.com (J.Charles at Electric RnB)
Subject: Re: Will Java kill C++?
X-Nntp-Posting-Host: eskimo.com
Message-ID: <DqBzI4.EH8@eskimo.com>
Followup-To: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
Sender: news@eskimo.com (News User Id)
Organization: Eskimo North (206) For-Ever
X-Newsreader: TIN [version 1.2 PL2]
References: <3134D499.653E@ix.netcom.com> <BLUME.96Apr16103345@zayin.cs.princeton.edu> <3175F966.167EB0E7@fernuni-hagen.de> <3176B6C5.F4D@concentric.net> <Dq3984.KBD@news.hawaii.edu>
Date: Tue, 23 Apr 1996 19:58:51 GMT
Lines: 30
Xref: glinda.oz.cs.cmu.edu comp.lang.java:43215 comp.lang.c++:186376 comp.lang.smalltalk:37781

Peter Hinely (phinely@Hawaii.Edu) wrote:
: In article <3176B6C5.F4D@concentric.net>,
: Alan L. Lovejoy <alovejoy@concentric.net> wrote:
: >
: >The central point of object-oriented programming is...objects.  That is,
: >the unification of value and behavior into an encapsulated object.
: >
: >--Alan

: Behavior (implemented as methods) need not be encapsulated into objects
: for a language to be object-oriented.  This corresponds to real life where
: most objects do not have methods encapsulated into them.  Does a ball know
: how to throw itself?  No, it is thrown by something else.  This can be
: modeled in a language via generic functions which dispatch to the
: appropriate method according to the argument list passed to it. 

:   throw( <ball> )
:   throw( <something-else> )


Some thing must do the throwing - an object for which it is natural to 
manifest the throw() behavior

Behavior disassociated with an object is procedure - and hence a language
which does not provide for Object/Behavior association is procedural.

tone,
	j.charles


