comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <stephen_leake@acm.org>
To: comp.lang.ada@ada-france.org
Subject: Re: What is derived?
Date: 02 Oct 2004 17:30:39 -0400
Date: 2004-10-02T17:30:39-04:00	[thread overview]
Message-ID: <mailman.163.1096752653.390.comp.lang.ada@ada-france.org> (raw)
In-Reply-To: <cjmk7f$1jm$05$1@news.t-online.com>

"Rick Santa-Cruz" <rick_santa_cruz75@msn.com> writes:

> Hi,
> 
> is the following list complete:
> subprograms of a base-class will be inherited, if:
> (1) they are in the same package as the base-type and not in a child-package
> (2) they have as parameter or as return type the base-class
> 
> That's it, or am I missing something? 

That's it.

> At least I think, that private-methods are inherited, or am I wrong?

If by "private-methods" you mean "subprograms declared in the private
part of the package spec", then yes and no. They will be derived if
they are visible at the point of derivation. 

-- 
-- Stephe




  reply	other threads:[~2004-10-02 21:30 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-02 16:15 What is derived? Rick Santa-Cruz
2004-10-02 21:30 ` Stephen Leake [this message]
2004-10-02 22:02   ` Rick Santa-Cruz
2004-10-03 16:54     ` Martin Krischik
replies disabled

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