comp.lang.ada
 help / color / mirror / Atom feed
From: chuck@brain.UUCP (Chuck Shotton)
Subject: Re: Difference between inheritance and package use
Date: Fri, 21 Jun 91 22:53:02 CDT	[thread overview]
Message-ID: <D2150025.iqm4nh@brain.UUCP> (raw)


In article <1991Jun22.013149.28268@netcom.COM>, jls@netcom.COM (Jim Showalter) writes:
> For example, I look around in nature and, yes, I do find examples of
> inheritance. But I also find tractors. And there are, to the best
> of my ability to discern their presence, scant few examples of
> inheritance in tractors. What I find in tractors is subassemblies
> (big ones, such as chassis, electrical, etc--subsystems), which
> in turn are decomposed into smaller components such as differentials,
> which are in turn decomposed into yet smaller components such as
> wrist pins and gaskets and knobs. And so forth, all the way down
> to quarks. And what is true for tractors is true for the human
> body, airplanes, telephones, and just about every other physical
> object I come into contact with--it is built up from smaller pieces.
> 

I think you've actually defined when each "branch" of the tree is utilized
without realizing it. Sure, there are tractors. And they are forms of 4 wheeled,
utilitarian locomotion, which are a sub-class of wheeled transportation and
a peer class to 4 wheeled recreational vehicles. Wheeled transportation is
a form of land vehicle, which is a subclass of vehicles in general.

Looking at the problem this way, it seems that inheritance, etc. is better
suited to decomposing the higher levels of abstraction, while packages, etc.
are better suited (as mentioned in your example above) to implementation details.
Which, amazingly enough, is one of the major features of the package construct
(hiding implementation details). I don't think you'll see a totally object
oriented LARGE system for a long time. Some hybrid of OOP and traditional
decomp., maybe. 

-----------------------------------------------------------------------
Chuck Shotton                 Internet:  cshotton@girch1.med.uth.tmc.edu
                              UUCP:      ...!buster!brain!chuck
"Your silly quote here."      AppleLink: D1683       MacNet: shotton

             reply	other threads:[~1991-06-22  3:53 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1991-06-22  3:53 Chuck Shotton [this message]
1991-06-23  3:06 ` Difference between inheritance and package use Jim Showalter
1991-06-23  8:38   ` Orville R. Weyrich
1991-06-24  3:32   ` Marco S Hyman
  -- strict thread matches above, loose matches on Subject: below --
1991-06-21 22:46 Mike Miller
1991-06-22  1:31 ` Jim Showalter
1991-06-23 13:59   ` Alan Knight
1991-06-23 18:51     ` Jim Showalter
1991-06-23 22:02       ` Milt Ratcliff
1991-06-23 20:16     ` Philip Machanick
1991-06-24 19:33 ` Douglas S. Gray
1991-06-24 20:39   ` Rob Spray
1991-06-25 16:04     ` Douglas S. Gray
1991-06-25 19:52   ` Jim Showalter
replies disabled

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