comp.lang.ada
 help / color / mirror / Atom feed
From: eichmann@h.cs.wvu.wvnet.edu (David A Eichmann,316K)
Subject: Re: Does Ada really need MULTIPLE inheritance?
Date: 17 Oct 89 17:23:53 GMT	[thread overview]
Message-ID: <503@h.cs.wvu.wvnet.edu> (raw)
In-Reply-To: 8910161521.AA27039@ajpo.sei.cmu.edu

From article <8910161521.AA27039@ajpo.sei.cmu.edu>, by NCOHEN@IBM.COM ("Norman H. Cohen"):
...
> Since nobody at either workshop was a strenuous advocate of multiple
> inheritance, I would like to see the argument for multiple inheritance

OK, let's say I'm creating refinements of a general concept of vehicle,
which contains two attributes, means of propulsion(motor, air, etc.) and
operating medium(land, air, water).  I can make an initial refinement
of air vehicles (adding appropriate attributes), land vehicles, and water
vehicles - refining by medium; or I can refine to motor vehicles, air
(powered) vehicles, etc - refining by propulsion.  With single inheritance,
I must choose one over the other.  With multiple inheritance, there is
no need.  A motorized air vehicle is an instance of both air vehicle AND
an instance of motorized vehicle.  My initial design choice is not coloring
subsequent interpretations and perspectives on the objects in question.


-----
David Eichmann
Dept. of Statistics and Computer Science
West Virginia University                  Phone: (304) 293-3607
Morgantown, WV  26506                     Email: eichmann@a.cs.wvu.wvnet.edu

  reply	other threads:[~1989-10-17 17:23 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1989-10-16 13:57 Does Ada really need MULTIPLE inheritance? "Norman H. Cohen"
1989-10-17 17:23 ` David A Eichmann,316K [this message]
1989-10-17 20:49   ` David Chase
1989-10-21 19:39     ` Inheritance & limited private types William Thomas Wolfe, 2847 
1989-10-22  7:00       ` Vinod Grover
1989-10-22 18:03         ` Inheritance & limited private t stt
1989-10-22 20:22         ` Inheritance & limited private types Barry Margolin
1989-10-23  0:39           ` Ted Dunning
1989-10-27 15:44           ` Paul Pedersen
1989-10-27 17:50             ` Robert Firth
1989-10-27 22:32               ` Profiling (was Re: Inheritance & limited private types) Barry Margolin
1989-10-27  0:04         ` Inheritance & limited private types Dick Karpinski
1989-10-30 17:12   ` Does Ada really need MULTIPLE inheritance? Paul Baker
1989-10-19  2:27 ` William Thomas Wolfe, 2847 
replies disabled

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