Re: OOP can be simply summed up as 'passing messages to objects'



On 27 Feb 2006 04:33:25 -0800, Alfredo Novoa wrote:

Phlip ha escrito:

OOP is passing messages to objects, where each responds to a message with a
method.

Passing messages to objects is simply a fashionable synonym of:
invoking procedures.

They are complementary views. One can say [equivalently]:

1. Procedural view: I call a subroutine Foo, passing parameters X, Y and
receive the result Z.

2. Object view: I send a message Foo to X, Y and Z.

Neither view is full. You cannot do procedural decomposition without
objects or object decomposition without methods.

I would not call it synonymic. "Fishing" is not a synonym of "Fish."

--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
.



Relevant Pages