Newsgroups: comp.lang.java,comp.lang.c++,comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!bb3.andrew.cmu.edu!newsfeed.pitt.edu!gatech!swrinde!ihnp4.ucsd.edu!munnari.OZ.AU!news.hawaii.edu!phinely
From: phinely@Hawaii.Edu (Peter Hinely)
Subject: Re: Will Java kill C++?
X-Nntp-Posting-Host: uhunix4.its.hawaii.edu
Message-ID: <Dq3984.KBD@news.hawaii.edu>
Sender: news@news.hawaii.edu
Organization: University of Hawaii
References: <3134D499.653E@ix.netcom.com> <BLUME.96Apr16103345@zayin.cs.princeton.edu> <3175F966.167EB0E7@fernuni-hagen.de> <3176B6C5.F4D@concentric.net>
Date: Fri, 19 Apr 1996 02:50:28 GMT
Lines: 21
Xref: glinda.oz.cs.cmu.edu comp.lang.java:41829 comp.lang.c++:185576 comp.lang.smalltalk:37582

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> )




