comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: was Ada 83 in fact object oriented ?
Date: Fri, 25 Sep 2015 10:43:18 +0200
Date: 2015-09-25T10:43:18+02:00	[thread overview]
Message-ID: <1m1z02fnyec2o.wyt86jotmw92.dlg@40tude.net> (raw)
In-Reply-To: mu2vld$5c4$1@dont-email.me

On Fri, 25 Sep 2015 10:14:24 +0200, J-P. Rosen wrote:

> Objects can then be organized as composition of lower level objects
> (programming by composition) or as hierarchies of general objects to
> more specific objects. The latter require inheritance.
> 
> For some mysterious reasons, the proponents of the hierarchical method
> declared that they were the only true object orientation, and
> disregarded OO by composition.

Nothing mysterious, object is an end product of analysis, design,
implementation. Things are decomposed into objects which interacts each
other through their methods.

Composition is of no interest beyond implementation issues because it does
not produce any functional object. There is no methods the product has,
except for "give me a component." Without methods it is not an object, just
a very rudimentary container.

Another point is that inheritance is an operation that influences the
class. You create a new member of the existing class per inheritance.
Composition is useless for maintaining classes. No wonder, it is not
considered OO.

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

  reply	other threads:[~2015-09-25  8:43 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-24 22:23 was Ada 83 in fact object oriented ? halfmaddad
2015-09-24 23:47 ` Jeffrey R. Carter
2015-09-25  2:30   ` halfmaddad
2015-09-25  8:11   ` Dmitry A. Kazakov
2015-09-25  8:30     ` J-P. Rosen
2015-09-25  8:47       ` Dmitry A. Kazakov
2015-09-25  8:03 ` Dmitry A. Kazakov
2015-09-25  8:14 ` J-P. Rosen
2015-09-25  8:43   ` Dmitry A. Kazakov [this message]
2015-09-25 11:04     ` J-P. Rosen
2015-09-25 12:17       ` Dmitry A. Kazakov
2015-09-25 12:44         ` J-P. Rosen
2015-09-25 15:27           ` Dmitry A. Kazakov
2015-09-25 12:44   ` halfmaddad
2015-09-25 16:24   ` Pascal Obry
2015-09-25 20:32   ` Jeffrey R. Carter
2015-10-05 12:27     ` vincent.diemunsch
2015-10-01 13:46 ` Paul Colin de Gloucester
2015-10-05 12:12   ` Vincent
2015-10-05 18:28     ` Jeffrey R. Carter
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox